/*
 FusionCharts JavaScript Library
 Copyright FusionCharts Technologies LLP
 License Information at <http://www.fusioncharts.com/license>

 @version fusioncharts/3.3.1-release.19520
*/
(function(){var i=FusionCharts(["private","modules.renderer.js-lib"]);if(i!==void 0){var l=window,w="",q="0",d=".",h=document,aa=!!h.createElementNS&&!!h.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect,e=/msie/i.test(navigator.userAgent)&&!window.opera,k=/\s+/g,r=/^#?/,ha=/^rgba/i,D=/[#\s]/ig,ba=/\{br\}/ig,E=/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i,H=Math.abs,L=Math.pow,B=Math.round,ia=L(2,-24),P=Object.prototype.toString,M=h.documentElement.ontouchstart!==void 0,x=Math,H=x.abs,m=x.max,
p=x.min,R={pageX:0,pageY:0},Z=function(b){var c=b.data,g=c.chart,f=g.paper,j=b.type,d=b.target||b.originalTarget||b.srcElement||b.relatedTarget||b.fromElement,e=M&&a(b)||R,n=g.elements.resizeBox,C=b.layerX||e.layerX,F=b.layerY||e.layerY,I=C-c.ox,t=F-c.oy,Y=c.bBox,u=c.ox,z=c.oy,Y=c.zoomX,h=c.zoomY,x=c.canvasY,S=c.canvasX,v=c.canvasW,ca=c.canvasH,Z=c.canvasX2,k=c.canvasY2,y=c.strokeWidth,I=c.chartPosLeft,t=c.chartPosTop,u=c.attr;C===void 0&&(C=(b.pageX||e.pageX)-I,F=(b.pageY||e.pageY)-t);switch(j){case "dragstart":c.oy=
F;c.ox=C;c.allowMove=!1;if(!n)n=g.elements.resizeBox=f.rect(g.layers.tracker).attr(u);if(C>S&&C<Z&&F>x&&F<k)c.allowMove=!0;if(d&&d.ishot)c.allowMove=!1;n.attr({x:0,y:0,width:0,height:0}).show();break;case "dragend":Y=n.getBBox();b={chart:g,selectionLeft:Y.x,selectionTop:Y.y,selectionHeight:Y.height,selectionWidth:Y.width};c.allowMove&&c.callback(b);n.hide();delete c.oy;delete c.ox;break;default:if(!c.allowMove)break;I=C-c.ox;t=F-c.oy;u=c.ox;z=c.oy;I=-(u-p(u-(u-m(u+I,S)),Z));t=-(z-p(z-(z-m(z+t,x)),
k));n.attr({x:(Y?p(u,u+I):S)+y*0.5,y:(h?p(z,z+t):x)+y*0.5,width:Y?H(I):v,height:h?H(t):ca})}},O=function(a){var b=a.target||a.originalTarget||a.srcElement||a.relatedTarget||a.fromElement,c=a.data,g=a.type,f=a.layerX,j=a.layerY;f===void 0&&(f=a.pageX-c.chartPosLeft,j=a.pageY-c.chartPosTop);if(g==="mousedown")b.ishot=f>c.canvasX&&f<c.canvasX2&&j>c.canvasY&&j<c.canvasY2;g==="mouseup"&&setTimeout(function(){b.ishot=!1},1)},x=function(){var a="innerWidth",b="innerHeight",c=h.documentElement||h.body,g=
c;"innerWidth"in l?g=l:(a="clientWidth",b="clientHeight");return function(){return{width:g[a],height:g[b],scrollTop:c.scrollTop,scrollLeft:c.scrollLeft}}}(),X=function(a,b){for(var c={left:a.offsetLeft||0,top:a.offsetTop||0},a=a.offsetParent;a;)c.left+=a.offsetLeft||0,c.top+=a.offsetTop||0,a!==h.body&&a!==h.documentElement&&!b&&(c.left-=a.scrollLeft,c.top-=a.scrollTop),a=a.offsetParent;return c},K=function(a,b){return!a&&a!==!1&&a!==0?b:a},y=function(){var a,b,c;b=0;for(c=arguments.length;b<c;b+=
1)if((a=arguments[b])||!(a!==!1&&a!==0))return a;return w},v=function(){var a,b,c;b=0;for(c=arguments.length;b<c;b+=1)if((a=arguments[b])||!(a!==!1&&a!==0))return a},b={mousedown:"touchstart",mousemove:"touchmove",mouseup:"touchend"},c=function(a,c,g,f){jQuery(a).bind(M&&b[c]||c,f,g)},j=function(a,c,g){var f=h.removeEventListener?"removeEventListener":"detachEvent";h[f]&&!a[f]&&(a[f]=function(){});jQuery(a).unbind(M&&b[c]||c,g)},a=function(a){var b=a.sourceEvent||a.originalEvent;return M&&b&&b.touches&&
b.touches[0]||a},g=function(){var a,b,c;b=0;for(c=arguments.length;b<c;b+=1)if((a=arguments[b])||!(a!==!1&&a!==0))if(!isNaN(a=Number(a)))return a},f=function(a,b){a=!a&&a!==!1&&a!==0?NaN:Number(a);return isNaN(a)?null:b?H(a):a},t=function(a){return typeof a==="string"?a.replace(ba,"<br />"):w},u=function(a,b,c){var g,f;if(b instanceof Array)for(g=0;g<b.length;g+=1)if(typeof b[g]!=="object")c&&b[g]===void 0||(a[g]=b[g]);else{if(a[g]===null||typeof a[g]!=="object")a[g]=b[g]instanceof Array?[]:{};u(a[g],
b[g],c)}else for(g in b)if(b[g]!==null&&typeof b[g]==="object")if(f=P.call(b[g]),f==="[object Object]"){if(a[g]===null||typeof a[g]!=="object")a[g]={};u(a[g],b[g],c)}else if(f==="[object Array]"){if(a[g]===null||!(a[g]instanceof Array))a[g]=[];u(a[g],b[g],c)}else a[g]=b[g];else a[g]=b[g];return a},S=function(a,b,c){if(typeof a!=="object"&&typeof b!=="object")return null;if(typeof b!=="object"||b===null)return a;typeof a!=="object"&&(a=b instanceof Array?[]:{});u(a,b,c);return a},U=function(a,b){var c;
if(b instanceof Array)for(c=b.length-1;c>=0;c-=1)typeof b[c]!=="object"?b[c]===!0&&a&&a.splice&&a.splice(c,1):P.call(b[c])===P.call(a[c])&&U(a[c],b[c]);else for(c in b)typeof b[c]!=="object"?b[c]===!0&&a&&a.splice&&a.splice(c,1):P.call(b[c])===P.call(a[c])&&U(a[c],b[c]);return a},Na=function(){var a=/^@window_/g;return function(b,c){var g=b.replace(/\[[\'\"]/g,".").replace(/[\'\"]\]/g,w).replace(/\[/g,".@window_").replace(/\]/g,w).split("."),f=l,j,d;d=w;var n,C,F;C=g.length;for(F=0;F<C;F+=1){n=g[F];
j=f;if(n.match(a))d=l[n.replace(a,w)],f=f[d];else if(f===void 0||f===null)throw(d||n).replace(a,w)+" is not defined";else f=f[n];d=n}f&&(typeof f.call==="function"||f===l.alert)?f===l.alert?f(c):f.call(j,c):setTimeout(function(){throw n.replace(a,w)+"() is not a function";},0)}}(),$=function(){var a="FusionChartslinkEval"+parseInt(+new Date,10);return function(b){try{l[a]=new Function(b),eval("window['"+a+"']();")}catch(c){setTimeout(function(){throw c;},0)}aa?delete l[a]:l[a]=null}}(),Ua=function(a,
b){a=Number(a);a=isNaN(a)?100:a;b!==void 0&&(a=a*b/100);return a%101},fa=function(a,b,c){var a=a.split(","),f;c!==void 0&&(c=g(c.split(",")[0]));a[0]=Ua(a[0],c);for(f=1;f<b;f+=1)a[f]=a[0]*Ua(a[f],c)/100;return a.join(",")},sa=function(a,b,c){var g=0,f=0,j=0;c&&c.match(ha)&&(c=c.split(","),g=c[0].slice(c[0].indexOf("(")+1),f=c[1],j=c[2],!b&&b!==0&&(b=parseInt(c[3].slice(0,c[3].indexOf(")"))*100,10)));if(a)if(a.match(ha))c=a.split(","),g=c[0].slice(c[0].indexOf("(")+1),f=c[1],j=c[2];else{a=a.replace(D,
w).split(",")[0];switch(a.length){case 3:a=a[0]+a[0]+a[1]+a[1]+a[2]+a[2];break;case 6:break;default:a=(a+"FFFFFF").slice(0,6)}g=parseInt(a.slice(0,2),16);f=parseInt(a.slice(2,4),16);j=parseInt(a.slice(4,6),16)}!b&&b!=0&&(b=100);typeof b==="string"&&(b=b.split(",")[0]);b=parseInt(b,10)/100;return"rgba("+g+","+f+","+j+","+b+")"},V=function(a){return a.replace(D,w).replace(r,"#")},pa=function(a,b){b=b<0||b>100?100:b;b/=100;var a=a.replace(D,w),c=parseInt(a,16),g=Math.floor(c/65536),f=Math.floor((c-g*
65536)/256);return("000000"+(g*b<<16|f*b<<8|(c-g*65536-f*256)*b).toString(16)).slice(-6)},xa=function(a,b){b=b<0||b>100?100:b;b/=100;var a=a.replace(D,w),c=parseInt(a,16),g=Math.floor(c/65536),f=Math.floor((c-g*65536)/256);return("000000"+(256-(256-g)*b<<16|256-(256-f)*b<<8|256-(256-(c-g*65536-f*256))*b).toString(16)).slice(-6)},ya={circle:"circle",triangle:"triangle",square:"square",diamond:"diamond",poly:"poly_",spoke:"spoke_"},Aa={font:"font",fontFamily:"font-family","font-family":"font-family",
fontWeight:"font-weight","font-weight":"font-weight",fontSize:"font-size","font-size":"font-size",lineHeight:"line-height","line-height":"line-height",textDecoration:"text-decoration","text-decoration":"text-decoration",color:"color",whiteSpace:"white-space","white-space":"white-space",padding:"padding",margin:"margin",background:"background",backgroundColor:"background-color","background-color":"background-color",backgroundImage:"background-image","background-image":"background-image",backgroundPosition:"background-position",
"background-position":"background-position",backgroundPositionLeft:"background-position-left","background-position-left":"background-position-left",backgroundPositionTop:"background-position-top","background-position-top":"background-position-top",backgroundRepeat:"background-repeat","background-repeat":"background-repeat",border:"border",borderColor:"border-color","border-color":"border-color",borderStyle:"border-style","border-style":"border-style",borderThickness:"border-thickness","border-thickness":"border-thickness",
borderTop:"border-top","border-top":"border-top",borderTopColor:"border-top-color","border-top-color":"border-top-color",borderTopStyle:"border-top-style","border-top-style":"border-top-style",borderTopThickness:"border-top-thickness","border-top-thickness":"border-top-thickness",borderRight:"border-right","border-right":"border-right",borderRightColor:"border-right-color","border-right-color":"border-right-color",borderRightStyle:"border-right-style","border-right-style":"border-right-style",borderRightThickness:"border-right-thickness",
"border-right-thickness":"border-right-thickness",borderBottom:"border-bottom","border-bottom":"border-bottom",borderBottomColor:"border-bottom-color","border-bottom-color":"border-bottom-color",borderBottomStyle:"border-bottom-style","border-bottom-style":"border-bottom-style",borderBottomThickness:"border-bottom-thickness","border-bottom-thickness":"border-bottom-thickness",borderLeft:"border-left","border-left":"border-left",borderLeftColor:"border-left-color","border-left-color":"border-left-color",
borderLeftStyle:"border-left-style","border-left-Style":"border-left-style",borderLeftThickness:"border-left-thickness","border-left-thickness":"border-left-thickness"},Ja=function(){var a=document.createElement("span"),b,c={lineHeight:!0,"line-height":!0},f=function(){return g(parseInt(a.style.fontSize,10),10)*1.4+"px"};a.innerHTML="fy";b=window.getComputedStyle?function(){var b=window.getComputedStyle(a,null);return b&&b.getPropertyValue("line-height")?b.getPropertyValue("line-height"):f.apply(this,
arguments)}:a.currentStyle?function(){return a.currentStyle.lineHeight}:f;return function(g){var j,d="";for(j in g)!c[j]&&Aa[j]&&(d+=Aa[j]+" : "+g[j]+";");e&&!aa?a.style.setAttribute("cssText",d):a.setAttribute("style",d);j=b();parseFloat(j)||(j=f());return g.lineHeight=j}}(),Va=function(){var a={top:{align:"center",verticalAlign:"top",textAlign:"center"},right:{align:"right",verticalAlign:"middle",textAlign:"left"},bottom:{align:"center",verticalAlign:"bottom",textAlign:"center"},left:{align:"left",
verticalAlign:"middle",textAlign:"right"}},b=/([^\,^\s]+)\)$/g,c=function(a,b){var c;if(/^(bar|bar3d)$/.test(a))this.isBar=!0,this.yPos="bottom",this.yOppPos="top",this.xPos="left",this.xOppPos="right";c=parseInt(b.labelstep,10);this.labelStep=c>1?c:1;this.showLabel=g(b.showlabels,b.shownames,1);this.is3D=/3d$/.test(a)};c.prototype={isBar:!1,yPos:"left",yOppPos:"right",xPos:"bottom",xOppPos:"top",addAxisGridLine:function(c,g,f,j,n,C,F,d){var e=f===""?!1:!0,t=j>0||C.match(b)[1]>0?!0:!1,u;if(e||t){t||
(C="rgba(0,0,0,0)",j=0.1);u={isGrid:!0,width:j,dashStyle:n,color:C,value:g,zIndex:F===void 0?2:F};if(e)g=c.opposite?d?this.xOppPos:this.yOppPos:d?this.xPos:this.yPos,g=a[g],u.label={text:f,style:c.labels.style,textAlign:g.textAlign,align:g.align,verticalAlign:g.verticalAlign,rotation:0,x:0,y:0};c.plotLines.push(u)}return u},addAxisAltGrid:function(a,b){if(!this.is3D){var c=g(a._lastValue,a.min),f=v(a._altGrid,!1);f&&a.plotBands.push({isGrid:!0,color:a.alternateGridColor,to:b,from:c,zIndex:1});a._lastValue=
b;a._altGrid=!f}},addXaxisCat:function(b,c,g,f){var n=a[b.opposite?this.xOppPos:this.xPos],c={isGrid:!0,width:0.1,color:"rgba(0,0,0,0)",value:c,label:{text:f,style:b.labels.style,textAlign:n.textAlign,align:n.align,verticalAlign:n.verticalAlign,rotation:0,x:0,y:0}};if(g%this.labelStep!==0)c.stepped=!0,c.label.style=b.steppedLabels.style;b.plotLines.push(c)},addVline:function(a,b,c,f){var n=f._FCconf,C=n.isBar,f=f.chart.plotBorderWidth,j=f%2,d=n.divlineStyle,e=t(b.label),u=Boolean(g(b.showlabelborder,
n.showVLineLabelBorder,1)),N=Boolean(g(b.showlabelbackground,1)),z=v(b.labelhalign,C?"left":"center"),h=v(b.labelvalign,C?"middle":"bottom").toLowerCase(),x=g(b.labelposition,0),S=g(b.lineposition,0.5),m=g(b.showvlines,n.showVLines,1),p=g(b.alpha,n.vLineAlpha,80),Z=v(b.color,n.vLineColor,"333333").replace(/^#?/,"#"),k=N?v(b.labelbgcolor,n.vLineLabelBgColor,"333333").replace(/^#?/,"#"):w,y=Z,U=g(b.thickness,n.vLineThickness,1),Ia=U*0.5,l=Boolean(Number(v(b.dashed,0))),T=g(b.dashlen,5),ga=g(b.dashgap,
2),A=n.smartLabel,J=parseInt(d.fontSize,10)+2,o=0,ka=g(b.rotatelabel,n.rotateVLineLabels)?270:0,S=S<0||S>1?0.5:S,x=x<0||x>1?0:x;A.setStyle(d);A=A.getOriSize(e);Z=sa(Z,m?p:"0");if(C){switch(h){case "top":J-=A.height+Ia+2;break;case "middle":J-=A.height*0.5+1;break;default:J+=Ia}b.labelhalign||(o-=A.width*x)}else{switch(h){case "top":J-=A.height+2+(f||1)*(1-x)+x;break;case "middle":J-=A.height*0.5+f*(1-x*2);break;default:J+=(f-j)*x}switch(z){case "left":o+=U;break;case "right":o-=U+1}}a.plotLines.push({isVline:!0,
color:Z,width:U,value:c-1+S,zIndex:g(b.showontop,n.showVLinesOnTop)?5:3,dashStyle:l?Sa(T,ga,U):void 0,label:{text:e,align:C?"left":"center",offsetScale:x,rotation:ka,y:J,x:o,textAlign:z,backgroundColor:k,borderWidth:m&&u?"1px":w,borderType:m&&u?"solid":w,borderColor:m&&u?y:w,backgroundOpacity:m&&N?v(b.labelbgalpha,n.vLineLabelBgAlpha)/100:0,style:{color:m?y:Z,fontSize:d.fontSize,fontFamily:d.fontFamily,lineHeight:d.lineHeight,backgroundColor:k}}})}};return c.prototype.constructor=c}();(function(){function a(b,
c,g){var f;if(c<=0)return String(B(b));if(isNaN(c))return b=b.toString(),b.length>12&&b.indexOf(d)!=-1&&(c=12-b.split(d)[0].length,f=L(10,c),b=String(B(b*f)/f)),b;f=L(10,c);b=String(B(b*f)/f);if(g==1){b.indexOf(d)==-1&&(b+=".0");g=b.split(d);c-=g[1].length;for(g=1;g<=c;g++)b+=q}return b}function b(a,c,g,f){var j=Number(a);if(isNaN(j))return w;var e=w,t=!1,u=w,z=w,h=u=0,u=0,h=a.length;a.indexOf(d)!=-1&&(e=a.substring(a.indexOf(d)+1,a.length),h=a.indexOf(d));j<0&&(t=!0,u=1);u=a.substring(u,h);a=u.length;
j=f.length-1;h=f[j];if(a<h)z=u;else for(;a>=h;)z=(a-h?g:w)+u.substr(a-h,h)+z,a-=h,h=(j-=1)<=0?f[0]:f[j],a<h&&(z=u.substring(a,0)+z);e!=w&&(z=z+c+e);t==!0&&(z="-"+z);return z}var c={formatnumber:"1",formatnumberscale:"1",defaultnumberscale:w,numberscaleunit:["K","M"],numberscalevalue:[1E3,1E3],numberprefix:w,numbersuffix:w,decimals:w,forcedecimals:q,yaxisvaluedecimals:"2",decimalseparator:d,thousandseparator:",",thousandseparatorposition:[3],indecimalseparator:w,inthousandseparator:w,sformatnumber:"1",
sformatnumberscale:q,sdefaultnumberscale:w,snumberscaleunit:["K","M"],snumberscalevalue:[1E3,1E3],snumberprefix:w,snumbersuffix:w,sdecimals:"2",sforcedecimals:q,syaxisvaluedecimals:"2",xFormatNumber:q,xFormatNumberScale:q,xDefaultNumberScale:w,xNumberScaleUnit:["K","M"],xNumberScaleValue:[1E3,1E3],xNumberPrefix:w,xNumberSuffix:w},f={mscombidy2d:{formatnumberscale:"1"}},j=function(a,b,C){var j,d,e,t,u,z,h,x,m,p=b.name,ca=S({},c),Z,k;(e=f[p])&&(ca=S(ca,e));this.csConf=ca;this.chartAPI=b;K(a.numberscaleunit)&&
(j=a.numberscaleunit.split(","));if(d=K(a.snumberscaleunit,a.numberscaleunit))d=d.split(",");if(e=K(a.xnumberscaleunit,a.numberscaleunit))e=e.split(",");if(t=K(a.ticknumberscaleunit,a.numberscaleunit))t=t.split(",");if(u=K(a.ynumberscaleunit,a.numberscaleunit))u=u.split(",");K(a.numberscalevalue)&&(z=a.numberscalevalue.split(","));if(k=K(a.snumberscalevalue,a.numberscalevalue))k=k.split(",");if(h=K(a.xnumberscalevalue,a.numberscalevalue))h=h.split(",");if(x=K(a.ticknumberscalevalue,a.numberscalevalue))x=
x.split(",");if(m=K(a.ynumberscalevalue,a.numberscalevalue))m=m.split(",");if(K(a.thousandseparatorposition)){Z=a.thousandseparatorposition.split(",");for(var U=Z.length,l,Ia=g(Z[U]),Ia=Ia?Ia:c.thousandseparatorposition[0];U;)U-=1,(l=g(Math.abs(Z[U])))?Ia=l:l=Ia,Z[U]=l}b||(b={});U=g(a.scalerecursively,0);l=g(a.sscalerecursively,U);var Ia=g(a.xscalerecursively,U),i=g(a.maxscalerecursion,-1),T=g(a.smaxscalerecursion,i),ga=g(a.xmaxscalerecursion,i),A=K(a.scaleseparator," "),J=K(a.sscaleseparator,A),
o=K(a.xscaleseparator,A);if(!i||i==0)i=-1;this.baseConf=j={cacheStore:[],formatnumber:v(a.formatnumber,b.formatnumber,ca.formatnumber),formatnumberscale:v(a.formatnumberscale,b.formatnumberscale,ca.formatnumberscale),defaultnumberscale:y(a.defaultnumberscale,b.defaultnumberscale,ca.defaultnumberscale),numberscaleunit:v(j,b.numberscaleunit,ca.numberscaleunit).concat(),numberscalevalue:v(z,b.numberscalevalue,ca.numberscalevalue).concat(),numberprefix:y(a.numberprefix,b.numberprefix,ca.numberprefix),
numbersuffix:y(a.numbersuffix,b.numbersuffix,ca.numbersuffix),decimalprecision:parseInt(a.decimals==="auto"?ca.decimalprecision:v(a.decimals,a.decimalprecision,b.decimals,ca.decimals,b.decimalprecision,ca.decimalprecision),10),forcedecimals:v(a.forcedecimals,b.forcedecimals,ca.forcedecimals),decimalseparator:v(a.decimalseparator,b.decimalseparator,ca.decimalseparator),thousandseparator:v(a.thousandseparator,b.thousandseparator,ca.thousandseparator),thousandseparatorposition:v(Z,b.thousandseparatorposition,
ca.thousandseparatorposition),indecimalseparator:y(a.indecimalseparator,b.indecimalseparator,ca.indecimalseparator),inthousandseparator:y(a.inthousandseparator,b.inthousandseparator,ca.inthousandseparator),scalerecursively:U,maxscalerecursion:i,scaleseparator:A};this.Y=[];if(!C){C={cacheStore:[],formatnumber:j.formatnumber,formatnumberscale:j.formatnumberscale,defaultnumberscale:j.defaultnumberscale,numberscaleunit:j.numberscaleunit.concat(),numberscalevalue:j.numberscalevalue.concat(),numberprefix:j.numberprefix,
numbersuffix:j.numbersuffix,decimalprecision:j.decimalprecision,forcedecimals:j.forcedecimals,decimalseparator:j.decimalseparator,thousandseparator:j.thousandseparator,thousandseparatorposition:j.thousandseparatorposition,indecimalseparator:j.indecimalseparator,inthousandseparator:j.inthousandseparator,scalerecursively:U,maxscalerecursion:i,scaleseparator:A};if(!b.useScaleRecursively||(C.numberscalevalue&&C.numberscalevalue.length)!=(C.numberscaleunit&&C.numberscaleunit.length))C.scalerecursively=
U=0;z={cacheStore:[],formatnumber:C.formatnumber,formatnumberscale:C.formatnumberscale,defaultnumberscale:C.defaultnumberscale,numberscaleunit:C.numberscaleunit.concat(),numberscalevalue:C.numberscalevalue.concat(),numberprefix:C.numberprefix,numbersuffix:C.numbersuffix,decimalprecision:parseInt(v(a.yaxisvaluedecimals,C.decimalprecision,2)),forcedecimals:v(a.forceyaxisvaluedecimals,C.forcedecimals),decimalseparator:C.decimalseparator,thousandseparator:C.thousandseparator,thousandseparatorposition:C.thousandseparatorposition.concat(),
indecimalseparator:C.indecimalseparator,inthousandseparator:C.inthousandseparator,scalerecursively:U,maxscalerecursion:i,scaleseparator:A};k={cacheStore:[],formatnumber:v(a.sformatnumber,b.sformatnumber,c.sformatnumber),formatnumberscale:v(a.sformatnumberscale,b.sformatnumberscale,c.sformatnumberscale),defaultnumberscale:y(a.sdefaultnumberscale,b.sdefaultnumberscale,C.defaultnumberscale),numberscaleunit:v(d,b.snumberscaleunit,c.snumberscaleunit).concat(),numberscalevalue:v(k,b.snumberscalevalue,c.snumberscalevalue).concat(),
numberprefix:y(a.snumberprefix,b.snumberprefix,c.snumberprefix),numbersuffix:y(a.snumbersuffix,b.snumbersuffix,c.snumbersuffix),decimalprecision:parseInt(v(a.syaxisvaluedecimals,a.sdecimals,a.decimals,b.sdecimals,c.sdecimals),10),forcedecimals:v(a.forcesyaxisvaluedecimals,a.sforcedecimals,a.forcedecimals,b.sforcedecimals,c.sforcedecimals),decimalseparator:v(a.decimalseparator,b.decimalseparator,c.decimalseparator),thousandseparator:v(a.thousandseparator,b.thousandseparator,c.thousandseparator),thousandseparatorposition:C.thousandseparatorposition.concat(),
indecimalseparator:v(a.indecimalseparator,b.indecimalseparator,c.indecimalseparator),inthousandseparator:v(a.inthousandseparator,b.inthousandseparator,c.inthousandseparator),scalerecursively:l,maxscalerecursion:T,scaleseparator:J};d=S({},k);d.decimalprecision=parseInt(v(a.sdecimals,a.decimals,a.syaxisvaluedecimals,b.sdecimals,c.sdecimals),10);d.forcedecimals=v(a.sforcedecimals,a.forcedecimals,a.forcesyaxisvaluedecimals,b.sforcedecimals,c.sforcedecimals);d.cacheStore=[];if(!b.useScaleRecursively||
(k.numberscalevalue&&k.numberscalevalue.length)!=(k.numberscaleunit&&k.numberscaleunit.length))k.scalerecursively=l=0;if(/^(bubble|scatter|selectscatter)$/.test(p))z.formatnumber=v(a.yformatnumber,z.formatnumber),z.formatnumberscale=v(a.yformatnumberscale,z.formatnumberscale),z.defaultnumberscale=y(a.ydefaultnumberscale,z.defaultnumberscale),z.numberscaleunit=v(u,z.numberscaleunit),z.numberscalevalue=v(m,z.numberscalevalue),z.numberprefix=v(a.ynumberprefix,z.numberprefix),z.numbersuffix=v(a.ynumbersuffix,
z.numbersuffix),C.formatnumber=v(a.yformatnumber,C.formatnumber),C.formatnumberscale=v(a.yformatnumberscale,C.formatnumberscale),C.defaultnumberscale=y(a.ydefaultnumberscale,C.defaultnumberscale),C.numberscaleunit=v(a.ynumberscaleunit,C.numberscaleunit.concat()),C.numberscalevalue=v(a.ynumberscalevalue,C.numberscalevalue.concat()),C.numberprefix=v(a.ynumberprefix,C.numberprefix),C.numbersuffix=v(a.ynumbersuffix,C.numbersuffix);if(/^(mscombidy2d|mscombidy3d)$/.test(p))k.formatnumberscale=g(a.sformatnumberscale,
"1");if(/^(pie2d|pie3d|doughnut2d|doughnut3d|marimekko|pareto2d|pareto3d)$/.test(p))C.decimalprecision=v(a.decimals,"2");U&&(C.numberscalevalue.push(1),C.numberscaleunit.unshift(C.defaultnumberscale),z.numberscalevalue.push(1),z.numberscaleunit.unshift(z.defaultnumberscale));l&&(k.numberscalevalue.push(1),k.numberscaleunit.unshift(k.defaultnumberscale),d.numberscalevalue.push(1),d.numberscaleunit.unshift(d.defaultnumberscale));this.Y[0]={yAxisLabelConf:z,dataLabelConf:C};this.Y[1]={yAxisLabelConf:k,
dataLabelConf:d};this.paramLabels=C;this.param1=z;this.param2=k;this.paramLabels2=d}this.paramX={cacheStore:[],formatnumber:v(a.xformatnumber,j.formatnumber),formatnumberscale:v(a.xformatnumberscale,j.formatnumberscale),defaultnumberscale:y(a.xdefaultnumberscale,j.defaultnumberscale),numberscaleunit:v(e,j.numberscaleunit.concat()),numberscalevalue:v(h,j.numberscalevalue.concat()),numberprefix:v(a.xnumberprefix,j.numberprefix),numbersuffix:v(a.xnumbersuffix,j.numbersuffix),decimalprecision:parseInt(v(a.xaxisvaluedecimals,
a.xaxisvaluesdecimals,j.decimalprecision,2),10),forcedecimals:v(a.forcexaxisvaluedecimals,0),decimalseparator:j.decimalseparator,thousandseparator:j.thousandseparator,thousandseparatorposition:j.thousandseparatorposition.concat(),indecimalseparator:j.indecimalseparator,inthousandseparator:j.inthousandseparator,scalerecursively:Ia,maxscalerecursion:ga,scaleseparator:o};if(!b.useScaleRecursively||(this.paramX.numberscalevalue&&this.paramX.numberscalevalue.length)!=(this.paramX.numberscaleunit&&this.paramX.numberscaleunit.length))this.paramX.scalerecursively=
Ia=0;Ia&&(this.paramX.numberscalevalue.push(1),this.paramX.numberscaleunit.unshift(this.paramX.defaultnumberscale));this.paramScale={cacheStore:[],formatnumber:v(a.tickformatnumber,j.formatnumber),formatnumberscale:v(a.tickformatnumberscale,j.formatnumberscale),defaultnumberscale:y(a.tickdefaultnumberscale,j.defaultnumberscale),numberscaleunit:v(t,j.numberscaleunit.concat()),numberscalevalue:v(x,j.numberscalevalue.concat()),numberprefix:v(a.ticknumberprefix,j.numberprefix),numbersuffix:v(a.ticknumbersuffix,
j.numbersuffix),decimalprecision:parseInt(v(a.tickvaluedecimals,j.decimalprecision,"2")),forcedecimals:v(a.forcetickvaluedecimals,j.forcedecimals,0),decimalseparator:j.decimalseparator,thousandseparator:j.thousandseparator,thousandseparatorposition:j.thousandseparatorposition.concat(),indecimalseparator:j.indecimalseparator,inthousandseparator:j.inthousandseparator,scalerecursively:U,maxscalerecursion:i,scaleseparator:A};U&&(this.paramScale.numberscalevalue.push(1),this.paramScale.numberscaleunit.unshift(this.paramScale.defaultnumberscale));
this.timeConf={inputDateFormat:v(a.inputdateformat,a.dateformat),outputDateFormat:v(a.outputdateformat,a.inputdateformat,a.dateformat),days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],daySuffix:["st","nd","rd","th","th","th","th","th","th","th","th","th","th","th","th","th","th","th","th","th","st","nd","rd","th","th","th","th","th","th","th","st"]}};
j.prototype={cleaneValueCacheStore:{},percentStrCacheStore:{},dispose:function(){this.Y&&delete this.Y;this.cleaneValueCacheStore&&delete this.cleaneValueCacheStore;this.percentStrCacheStore&&delete this.percentStrCacheStore;this.baseConf&&delete this.baseConf;this.timeConf&&delete this.timeConf;this.paramX&&delete this.paramX;this.paramScale&&delete this.paramScale},parseMLAxisConf:function(a,b){var f=this.baseConf,j=this.csConf,d=this.chartAPI,e=g(a.scalerecursively,f.scalerecursively),t=g(a.maxscalerecursion,
f.maxscalerecursion),u=K(a.scaleseparator,f.scaleseparator),z,h,x,S,m,p,b=g(b,this.Y.length);K(a.numberscaleunit)&&(z=a.numberscaleunit.split(","));K(a.numberscalevalue)&&(h=a.numberscalevalue.split(","));t||(t=-1);if(K(a.thousandseparatorposition)){x=a.thousandseparatorposition.split(",");S=x.length;for(p=c.thousandseparatorposition[0];S--;)(m=g(H(x[S])))?p=m:m=p,x[S]=m}f={cacheStore:[],formatnumber:v(a.formatnumber,f.formatnumber),formatnumberscale:v(a.formatnumberscale,f.formatnumberscale),defaultnumberscale:y(a.defaultnumberscale,
f.defaultnumberscale),numberscaleunit:v(z,f.numberscaleunit).concat(),numberscalevalue:v(h,f.numberscalevalue).concat(),numberprefix:y(a.numberprefix,f.numberprefix),numbersuffix:y(a.numbersuffix,f.numbersuffix),forcedecimals:v(a.forcedecimals,f.forcedecimals),decimalprecision:parseInt(a.decimals==="auto"?j.decimalprecision:v(a.decimals,f.decimalprecision),10),decimalseparator:v(a.decimalseparator,f.decimalseparator),thousandseparator:v(a.thousandseparator,f.thousandseparator),thousandseparatorposition:v(x,
f.thousandseparatorposition),indecimalseparator:y(a.indecimalseparator,f.indecimalseparator),inthousandseparator:y(a.inthousandseparator,f.inthousandseparator),scalerecursively:e,maxscalerecursion:t,scaleseparator:u};if(!d.useScaleRecursively||(f.numberscalevalue&&f.numberscalevalue.length)!=(f.numberscaleunit&&f.numberscaleunit.length))f.scalerecursively=e=0;d={cacheStore:[],formatnumber:f.formatnumber,formatnumberscale:f.formatnumberscale,defaultnumberscale:f.defaultnumberscale,numberscaleunit:f.numberscaleunit.concat(),
numberscalevalue:f.numberscalevalue.concat(),numberprefix:f.numberprefix,numbersuffix:f.numbersuffix,decimalprecision:parseInt(v(a.yaxisvaluedecimals,f.decimalprecision,2)),forcedecimals:v(a.forceyaxisvaluedecimals,f.forcedecimals),decimalseparator:f.decimalseparator,thousandseparator:f.thousandseparator,thousandseparatorposition:f.thousandseparatorposition.concat(),indecimalseparator:f.indecimalseparator,inthousandseparator:f.inthousandseparator,scalerecursively:e,maxscalerecursion:t,scaleseparator:u};
e&&(f.numberscalevalue.push(1),f.numberscaleunit.unshift(f.defaultnumberscale),d.numberscalevalue.push(1),d.numberscaleunit.unshift(d.defaultnumberscale));this.Y[b]={dataLabelConf:f,yAxisLabelConf:d}},percentValue:function(c){var g=this.percentStrCacheStore[c];g===void 0&&(g=isNaN(this.paramLabels.decimalprecision)?"2":this.paramLabels.decimalprecision,g=this.percentStrCacheStore[c]=b(a(c,g,this.paramLabels.forcedecimals),this.paramLabels.decimalseparator,this.paramLabels.thousandseparator,this.paramLabels.thousandseparatorposition)+
"%");return g},getCleanValue:function(a,b){var c=this.cleaneValueCacheStore[a],g;if(c===void 0){c=a;g=this.baseConf.indecimalseparator;var f=this.baseConf.inthousandseparator;c+=w;K(f)&&(f=f.replace(/(\W)/ig,"\\$1"),c=c.toString().replace(RegExp(f,"g"),w));K(g)&&(c=c.replace(g,d));g=!isNaN(c=parseFloat(c))&&isFinite(c)?c:NaN;this.cleaneValueCacheStore[a]=c=isNaN(g)?null:b?H(g):g}return c},dataLabels:function(a,b){var c=this.Y[b]||(b?this.Y[1]:this.Y[0]),g,c=c&&c.dataLabelConf||this.baseConf;g=c.cacheStore[a];
g===void 0&&(g=c.cacheStore[a]=e(a,c));return g},yAxis:function(a,b){var c=this.Y[b]||(b?this.Y[1]:this.Y[0]),g,c=c&&c.yAxisLabelConf||this.baseConf;g=c.cacheStore[a];g===void 0&&(g=c.cacheStore[a]=e(a,c));return g},xAxis:function(a){var b=this.paramX.cacheStore[a];b===void 0&&(b=this.paramX.cacheStore[a]=e(a,this.paramX));return b},sYAxis:function(a){var b=this.Y[1],c,b=b&&b.yAxisLabelConf||this.baseConf;c=b.cacheStore[a];c===void 0&&(c=b.cacheStore[a]=e(a,b));return c},scale:function(a){var b=this.paramScale.cacheStore[a];
b===void 0&&(b=this.paramScale.cacheStore[a]=e(a,this.paramScale));return b},getCleanTime:function(a){var b;this.timeConf.inputDateFormat&&Date.parseExact&&(b=Date.parseExact(a,this.timeConf.inputDateFormat));return b&&b.getTime()},getDateValue:function(a){a=a&&/^dd/.test(this.timeConf.inputDateFormat)&&a.replace(/(\d{1,2})\/(\d{1,2})\/(\d{2,4})/,"$2/$1/$3")||a;a=new Date(a);return{ms:a.getTime(),date:a}},getFormatedDate:function(a,b){var c=typeof a==="object"&&a||this.getDateValue(a).date,g=this.timeConf,
f=v(b,g.outputDateFormat),j=c.getFullYear(),d=c.getMonth(),e=c.getDate(),t=c.getDay(),u=c.getMinutes(),h=c.getSeconds(),c=c.getHours();f.match(/dnl/)&&(f=f.replace(/dnl/ig,g.days[t]));f.match(/dns/)&&(f=f.replace(/dns/ig,g.days[t].substr(0,3)));f.match(/dd/)&&(f=f.replace(/dd/ig,e));f.match(/mnl/)&&(f=f.replace(/mnl/ig,g.months[d]));f.match(/mns/)&&(f=f.replace(/mns/ig,g.months[d].substr(0,3)));f.match(/mm/)&&(f=f.replace(/mm/ig,d+1));f.match(/yyyy/)&&(f=f.replace(/yyyy/ig,j));f.match(/yy/)&&(f=f.replace(/yy/ig,
(j%1E3%100+"").replace(/^(\d)$/,"0$1")));f.match(/hh12/)&&(f=f.replace(/hh12/ig,c%12||12));f.match(/hh/)&&(f=f.replace(/hh/ig,c));f.match(/mn/)&&(f=f.replace(/mn/ig,u));f.match(/ss/)&&(f=f.replace(/ss/ig,h));f.match(/ampm/)&&(f=f.replace(/ampm/ig,c<12?"AM":"PM"));f.match(/ds/)&&(f=f.replace(/ds/ig,g.daySuffix[e]));return f}};j.prototype.constructor=j;var e=function(c,f){if(c!==null){var c=Number(c),j=c+w,d;d=f.formatnumberscale==1?f.defaultnumberscale:w;var e;e=(e=j.split(".")[1])?e.length:f.forcedecimals?
"2":w;if(f.formatnumberscale==1){var t,j=c;d=f.numberscalevalue;t=f.numberscaleunit;var u={},h=f.defaultnumberscale,z=0,x,S=[],m=[];if(f.scalerecursively){for(z=0;z<d.length;z++)if(x=g(d[z])||1E3,Math.abs(Number(j))>=x&&z<d.length-1)h=j%x,j=(j-h)/x,h!=0&&(S.push(h),m.push(t[z]));else{S.push(j);m.push(t[z]);break}S.reverse();m.reverse();u.value=S;u.scale=m}else{if(d.length===t.length)for(z=0;z<d.length;z++)if((x=g(d[z])||1E3)&&Math.abs(Number(j))>=x)h=t[z]||w,j=Number(j)/x;else break;u.value=j;u.scale=
h}t=u;c=j=t.value;d=t.scale}if(f.scalerecursively&&f.formatnumberscale!=0){d=t.value;t=t.scale;u=f.maxscalerecursion==-1?d.length:Math.min(d.length,f.maxscalerecursion);if(f.formatnumber==1){j="";for(S=0;S<u;S++)z=S==0?d[S]:Math.abs(d[S]),x=String(z),S==u-1&&(x=a(z,v(f.decimalprecision,e),f.forcedecimals)),j=j+b(x,f.decimalseparator,f.thousandseparator,f.thousandseparatorposition)+t[S]+(S<u-1?f.scaleseparator:"")}else{j="";for(S=0;S<u;S++)j=j+String(S==0?d[S]:Math.abs(d[S]))+t[S]+(S<u-1?f.scaleseparator:
"")}j=(f.numberprefix||w)+j+(f.numbersuffix||w);delete d;delete t}else f.formatnumber==1&&(j=a(c,v(f.decimalprecision,e),f.forcedecimals),j=b(j,f.decimalseparator,f.thousandseparator,f.thousandseparatorposition)),j=(f.numberprefix||w)+j+d+(f.numbersuffix||w);return j}};return j})();var ja=function(){var a=function(a,c,f,g,j){a=Math.abs(c-a);c=a/(f+1);b(a/(f+1))>b(g)&&(j&&Number(c)/Number(g)<(g>1?2:0.5)&&(g/=10),c=(Math.floor(c/g)+1)*g,a=c*(f+1));return a},b=function(a){var a=Math.abs(a),a=String(a),
b=0,c=a.indexOf(d);c!=-1&&(b=a.length-c-1);return b};return function(c,f,g,j,d,n,C,e){var t,c=isNaN(c)==!0||c==void 0?0.1:c,f=isNaN(f)==!0||f==void 0?0:f;c==f&&c==0&&(c=0.1);var n=typeof n===void 0?!0:n,u=Math.max(Math.floor(Math.log(Math.abs(f))/Math.LN10),Math.floor(Math.log(Math.abs(c))/Math.LN10));t=Math.pow(10,u);Math.abs(c)/t<2&&Math.abs(f)/t<2&&(u--,t=Math.pow(10,u));u=Math.pow(10,Math.floor(Math.log(c-f)/Math.LN10));c-f>0&&t/u>=10&&(t=u);var u=(Math.floor(c/t)+1)*t,h;f<0?h=-1*(Math.floor(Math.abs(f/
t))+1)*t:n?h=0:(h=Math.floor(Math.abs(f/t)-1)*t,h=h<0?0:h);(typeof d===void 0||d)&&c<=0&&(u=0);d=g==null||g==void 0||g==w?!1:!0;n=j==null||j==void 0||j==w||isNaN(Number(j))?!1:!0;c=d==!1||d==!0&&Number(g)<c&&c-Number(g)>ia?u:Number(g);f=n==!1||n==!0&&Number(j)>f&&Number(j)-f>ia?h:Number(j);j=Math.abs(c-f);if(n==!1&&d==!1&&e==!0)if(c>0&&f<0)for(var e=!1,g=t>10?t/10:t,d=a(f,c,C,g,!1)-(C+1)*g,x,z,S,m;e==!1;){if(d+=(C+1)*g,!(b(d/(C+1))>b(g)))if(x=d-j,n=d/(C+1),h=Math.min(Math.abs(f),c),u=h==Math.abs(f)?
-1:1,C==0)e=!0;else for(m=1;m<=Math.floor((C+1)/2);m++)z=n*m,!(z-h>x)&&z>h&&(S=d-z,S/n==Math.floor(S/n)&&z/n==Math.floor(z/n)&&(j=d,c=u==-1?S:z,f=u==-1?-z:-S,e=!0))}else e=a(f,c,C,t,!0),x=e-j,j=e,c>0?c+=x:f-=x;else if(e==!0&&C>0){e=0;for(g=1;;){x=C+e*g;x=x==0?1:x;if(!(b(j/(x+1))>b(t)))break;e=g==-1||e>C?++e:e;if(e>25){x=0;break}g=e<=C?g*-1:1}C=x}return{Max:c,Min:f,Range:j,interval:t,divGap:(c-f)/(C+1)}}}(),Da=function(){var a=function(a,b){this.title.y=a.offsetHeight/2;if(b!==void 0)this.title.text=
b};a.prototype={chart:{events:{},margin:[0,0,0,0],backgroundColor:{FCcolor:{alpha:0}}},credits:{href:"http://www.fusioncharts.com?BS=FCHSEvalMark",text:"FusionCharts",enabled:!0},legend:{enabled:!1},title:{text:"",style:{fontFamily:"Verdana",fontSize:"10px",color:"#666666"}},plotOptions:{series:{}},series:[{}],exporting:{enabled:!1},nativeMessage:!0};return a.prototype.constructor=a}(),bb={"true":{"true":{"true":"center","false":"center"},"false":{"true":"center","false":"center"}},"false":{"true":{"true":"right",
"false":"left"},"false":{"true":"left","false":"right"}}},Pa=function(){return function(a,b,c,f,j,d,e){var n,C=c.trendStyle,F,u,h,x,m,z,p,k,Z,y,ca,U;parseInt(C.fontSize,10);if(!(d?!c.showVLines:!c.showTrendlines)){n=0;for(u=a.length;n<u;n+=1)if(a[n].line){F=0;for(h=a[n].line.length;F<h;F+=1)if(x=a[n].line[F],ca=c.numberFormatter.getCleanValue(v(x.startvalue,x.value,0)),U=c.numberFormatter.getCleanValue(v(x.endvalue,v(x.startvalue,x.value,0))),Z=d?b:f&&x.parentyaxis&&/^s$/i.test(x.parentyaxis)?b[1]:
b[0],z=Z.max,p=Z.min,z>=ca&&z>=U&&p<=ca&&p<=U){f||(m=x.parentyaxis&&/^s$/i.test(x.parentyaxis)?v(x.valueonleft,c.trendlineValuesOnOpp)!=="1":v(x.valueonright,c.trendlineValuesOnOpp)==="1");z=Boolean(g(x.istrendzone,d?1:0));if(p=(d?c.showVLineLabels:c.showTrendlineLabels)?t(v(x.displayvalue,c.numberFormatter[d?"xAxis":"dataLabels"](ca))):w){if(k=ca<U,p={text:p,textAlign:j?"center":m?"left":"right",align:j?bb[z][!e][k]:m?"right":"left",verticalAlign:j?"bottom":"middle",rotation:0,x:0,y:0,style:C},k=
v(x.color,c.trendlineColor),x.alwaysVisible=z,k)p.style=S({},C),p.style.color=k.replace(r,"#")}else p=void 0;k=v(x.tooltext);y=g(x.thickness,c.trendlineThickness,1);z?Z.plotBands.push({isTrend:!0,color:sa(v(x.color,c.trendlineColor),v(x.alpha,c.trendlineAlpha,40)),from:ca,to:U,label:p,zIndex:!c.is3d&&v(x.showontop,c.showTrendlinesOnTop)==="1"?5:3,tooltext:k,alwaysVisible:x.alwaysVisible}):Z.plotLines.push({isTrend:!0,color:sa(v(x.color,c.trendlineColor,c.trendlineColor),v(x.alpha,c.trendlineAlpha,
99)),value:ca,to:U,width:y,dashStyle:v(x.dashed,c.trendlinesAreDashed)=="1"?Sa(g(x.dashlen,c.trendlinesDashLen),g(x.dashgap,c.trendlinesDashGap),y):void 0,label:p,zIndex:!c.is3d&&v(x.showontop,c.showTrendlinesOnTop)==="1"?5:3,tooltext:k})}}}}}(),Sa=function(a,b,c,f){return f||f===void 0?[a,b]:w},Ca=function(){},$a=function(a,b,c){var f,g=$a[a];if(!g)g=function(){},g.prototype=c instanceof Ca?c:new Ca,g.prototype.constructor=g,g=$a[a]=new g;if(c)g.base=c;g.name=a;for(f in b)switch(typeof b[f]){case "object":if(b[f]instanceof
Ca){g[f]=b[f][f];break}default:g[f]=b[f];break;case "undefined":delete g[f]}return this instanceof $a?(a=function(){},a.prototype=g,a.prototype.constructor=a,new a):g};i.extend(i.hcLib,{BLANKSTRINGPLACEHOLDER:"#BLANK#",BLANKSTRING:w,COLOR_BLACK:"000000",COLOR_GLASS:"rgba(255, 255, 255, 0.3)",COLOR_WHITE:"FFFFFF",COLOR_TRANSPARENT:"rgba(0,0,0,0)",HASHSTRING:"#",BREAKSTRING:"<br />",STRINGSTRING:"string",OBJECTSTRING:"object",COMMASTRING:",",ZEROSTRING:q,SAMPLESTRING:"Ay0",TESTSTR:"Ag",ONESTRING:"1",
DECIMALSTRING:d,STRINGUNDEFINED:"undefined",POSITION_TOP:"top",POSITION_RIGHT:"right",POSITION_BOTTOM:"bottom",POSITION_LEFT:"left",POSITION_CENTER:"center",POSITION_MIDDLE:"middle",POSITION_START:"start",POSITION_END:"end",FC_CONFIG_STRING:"_FCconf",SHAPE_RECT:"rect",HUNDREDSTRING:"100",PXSTRING:"px",COMMASPACE:", ",TEXTANCHOR:"text-anchor",regex:{stripWhitespace:k,dropHash:r,startsRGBA:ha,cleanColorCode:D,breakPlaceholder:ba,hexcode:/^#?[0-9a-f]{6}/i},fireEvent:function(a,b,c,f){var g=jQuery.Event(b),
j="detached"+b;extend(g,c);a[b]&&(a[j]=a[b],a[b]=null);jQuery(a).trigger(g);a[j]&&(a[b]=a[j],a[j]=null);f&&!g.isDefaultPrevented()&&f(g)},addEvent:c,removeEvent:j,getTouchEvent:a,extend2:S,deltend:function(a,b){if(typeof a!=="object"||typeof b!=="object")return null;U(a,b);return a},imprint:function(a,b,c){var f;if(typeof a!=="object"||a===null)return b;if(typeof b!=="object"||b===null)return a;for(f in b)if(a[f]===void 0||!c&&a[f]===null)a[f]=b[f];return a},pluck:v,pluckNumber:g,getFirstDefinedValue:function(){var a,
b,c;b=0;for(c=arguments.length;b<c;b+=1)if((a=arguments[b])||!(a!==!1&&a!==0&&a!=w))return a},createElement:function(a,b,c){var a=h.createElement(a),f;for(f in b)a.setAttribute(f,b[f]);c&&c.appendChild&&c.appendChild(a);return a},hashify:function(a){return a&&a.replace(/^#?([a-f0-9]+)/ig,"#$1")||"none"},pluckFontSize:function(){var a,b,c;b=0;for(c=arguments.length;b<c;b+=1)if((a=arguments[b])||!(a!==!1&&a!==0))if(!isNaN(a=Number(a)))return a<1?1:a;return 1},getValidValue:K,getPosition:X,getViewPortDimension:x,
bindSelectionEvent:function(a,b,f){var f=f||{},d=a.options.chart,e=a.container,t=d.zoomType,u=S({},f.attr||{}),f=u["stroke-width"]=g(u.strokeWidth,u["stroke-width"],1),n=X(e),f={chart:a,zoomX:/x/.test(t),zoomY:/y/.test(t),canvasY:a.canvasTop,canvasX:a.canvasLeft,canvasW:a.canvasWidth,canvasH:a.canvasHeight,canvasX2:a.canvasLeft+a.canvasWidth,canvasY2:a.canvasTop+a.canvasHeight,strokeWidth:f,chartPosLeft:n.left,chartPosTop:n.top,attr:u,callback:b};u.stroke=y(u.stroke,"rgba(51,153,255,0.8)");u.fill=
y(u.fill,"rgba(185,213,241,0.3)");u.ishot=!0;e&&(j(e,"dragstart drag dragend",Z),c(e,"dragstart drag dragend",Z,f));d.link&&(j(a.container,"mouseup mousedown",O),c(a.container,"mouseup mousedown",O,f))},createContextMenu:function(a){var b=a.chart,c=b.smartLabel,f=a.labels,g=a.hover||{fill:"rgba(64, 64, 64, 1)"},j=a.attrs||{fill:"rgba(255, 255, 255, 1)"},d=f&&f.style||{fontSize:"12px",color:"000000"},n=f&&f.attrs||{},e=f&&f.hover||{color:"FFFFFF"},t=a.items,u=a.position,x=a.verticalPadding||5,h=a.horizontalPadding||
10,S=i.hcLib.Raphael,z={},m,p,k;if(b)m=X(b.container);else return!1;var Z=function(){k=this;var a=z.items,b=a.length,f=0,g=0,A=0,J=0,o,ka=z.group;if(!z.menuItems)z.menuItems=[];for(;b--;)o=a[b],o=c.getOriSize(o.text),A||(A=o.height+2*x),f+=A,g=Math.max(g,o.width+2*h);z.height=f;z.width=g;z.itemH=A;k.setSize(g+5,f+5);if(!ka)ka=z.group=k.group("contextmenu-container");z.menuRect?z.menuRect.attr({width:g,height:f}):z.menuRect=k.rect(0,0,g,f,0,ka).shadow(!0).attr({"stroke-width":1});f=a.length;for(b=
0;b<f;b+=1)o=a[b],z.menuItems[b]?z.menuItems[b].label.attr({text:o.text}):(z.menuItems[b]={},z.menuItems[b].box=k.rect(0,J,g,A,0,ka).attr({stroke:"none"}).attr(j).click(l).hover(y,U),z.menuItems[b].label=k.text(h/2,J+A/2,o.text,ka).attr({"text-anchor":"start"}).attr(n).css(d).click(l).hover(y,U),z.menuItems[b].box._itemIdx=b,z.menuItems[b].label._itemIdx=b,J+=A);for(;z.menuItems[b];)z.menuItems[b].box.remove(),z.menuItems[b].label.remove(),z.menuItems.splice(b,1)},ca=function(a){var c=a.x,a=a.y,f=
{x:c+m.left,y:a+m.top},g=z.width,A=z.height,j=b.chartHeight;c+g>b.chartWidth&&c-g>0&&(f.x-=g);a+A>j&&a-A>0&&(f.y-=A);return f},v=function(){z.hide()},y=function(){var a=z.menuItems[this._itemIdx];p&&clearTimeout(p);a.box.attr(g);a.label.css(e)},U=function(){var a=z.menuItems[this._itemIdx];a.box.attr(j);a.label.css(d);p=setTimeout(z.hide,800)},l=function(a){var b=z.items[this._itemIdx];b.onclick&&b.onclick.call(b,a);z.hide()};z.showItem=function(a){var b=this.menuItems[a],c=this.height,f=this.itemH;
if(b&&b._isHidden){c=this.height=c+f;this.menuRect.attr({height:c});b.box.show();b.label.show();b._isHidden=!1;b=ca(u);this.left=b.x;this.top=b.y;for(a+=1;b=this.menuItems[a];)b.box.attr({y:b.box.attrs.y+f}),b.label.attr({y:b.label.attrs.y+f}),a+=1}};z.hideItem=function(a){var b=this.menuItems[a],c=this.height,f=this.itemH;if(b&&!b._isHidden){b.box.hide();b.label.hide();c=this.height=c-f;this.menuRect.attr({height:c});b._isHidden=!0;b=ca(u);this.left=b.x;this.top=b.y;for(a+=1;b=this.menuItems[a];)b.box.attr({y:b.box.attrs.y-
f}),b.label.attr({y:b.label.attrs.y-f}),a+=1}};z.redraw=function(){var a=this.paper;this.items=t;a?Z.call(this.paper):u&&u.x!==void 0&&u.y!==void 0?(this.paper=S(0,0,100,100),Z.call(this.paper),a=ca(u),this.left=a.x,this.top=a.y,this.paper.canvas.style.left=this.left+"px",this.paper.canvas.style.top=this.top+"px"):(this.paper=S(0,0,100,100),Z.call(this.paper))};z.show=function(a){this.visible=!0;a&&a.x!==void 0&&a.y!==void 0?(a=ca(a),this.paper.canvas.style.left=a.x+"px",this.paper.canvas.style.top=
a.y+"px"):(this.paper.canvas.style.left=this.left+"px",this.paper.canvas.style.top=this.top+"px");z.group.show();setTimeout(function(){S.click(v)},50)};z.hide=function(){this.visible=!1;z.group.hide();z.paper.canvas.style.left=-z.width+"px";z.paper.canvas.style.top=-z.height+"px";S.unclick(v)};z.update=function(a){if(a&&a.length)this.items=a,this.redraw()};z.updatePosition=function(a){var c={left:m.left,top:m.top};m=X(b.container);a?(u=a,a=ca(a),this.left=a.x,this.top=a.y):(this.left-=c.left-m.left,
this.top-=c.top-m.top)};z.add=function(a){var b=this.paper,c=this.menuItems,f=c.length;c[f]={};c[f].box=b.rect(0,this.height,this.width,this.itemH,0).attr(j).hover(y,U);z.menuItems[f].label=b.text(this.width/2,this.height+this.itemH/2,a.text).attr(n).css(d).hover(y,U);z.menuItems[f].box._itemIdx=f;z.menuItems[f].label._itemIdx=f;this.height+=this.itemH;this.menuRect.attr({height:this.height})};z.removeItems=function(){for(var a=this.menuItems,b=a&&a.length,c;b--;)c=a[b],c.box&&c.box.remove&&c.box.remove(),
c.label&&c.label.remove&&c.label.remove();delete this.menuItems;delete this.items};z.setPosition=function(a){a.x!==void 0&&a.y!==void 0&&this.paper.setViewBox(a.x,a.y,this.width,this.height)};z.destroy=function(){this.removeItems();this.menuRect.remove()};t&&t.length&&(z.redraw(),z.hide());return z},getDefinedColor:function(a,b){return!a&&a!=0&&a!=!1?b:a},getFirstValue:y,getFirstColor:function(a){a=a.split(",")[0];a=a.replace(k,w);a==w&&(a="000000");return a.replace(r,"#")},getColorCodeString:function(a,
b){var c="",f,g,j=0,d=b.split(",");for(g=d.length;j<g;j+=1)f=d[j].split("-"),c+=f.length===2?f[0].indexOf("dark")!=="-1"?xa(a,100-parseInt(f[1],10))+",":pa(a,100-parseInt(f[1],10))+",":d[j]+",";return c.substring(0,c.length-1)},pluckColor:function(a){if(K(a))return a=a.split(",")[0],a=a.replace(k,w),a==w&&(a="000000"),a.replace(r,"#")},trimString:function(a){for(var a=a.replace(/^\s\s*/,""),b=/\s/,c=a.length;b.test(a.charAt(c-=1)););return a.slice(0,c+1)},getFirstAlpha:function(a){a=parseInt(a,10);
if(isNaN(a)||a>100||a<0)a=100;return a},parsePointValue:f,parseUnsafeString:t,toPrecision:function(a,b){var c=L(10,b);return B(a*c)/c},hasTouch:M,getSentenceCase:function(a){a=a||w;return a.charAt(0).toUpperCase()+a.substr(1)},getCrispValues:function(a,b,c){var f=c%2/2,c=B(a+f)-f,a=B(a+b+f)-f-c;return{position:c,distance:a}},stubFN:function(){},falseFN:function(){return!1},stableSort:function(a,b){var c=a.length,f;for(f=0;f<c;f++)a[f].ss_i=f;a.sort(function(a,c){var f=b(a,c);return f===0?a.ss_i-c.ss_i:
f});for(f=0;f<c;f++)delete a[f].ss_i},hasSVG:aa,isIE:e,getLinkAction:function(a,b){var c=function(a){return a};return function(){var f=g((a.chart||a.map||{}).unescapelinks,1),j=y(this.link,w),d=v(j,this.options&&this.options.chart&&this.options.chart.link||w,this.series&&this.series.chart&&this.series.chart.options&&this.series.chart.options.chart&&this.series.chart.options.chart.link||w),e=d,n,C,t,u,x,h,S,z,m,p;if(d!==void 0){f&&(d=l.decodeURIComponent?l.decodeURIComponent(d):unescape(d));d=d.replace(/^\s+/,
w).replace(/\s+$/,w);if(d.search(/^[a-z]*\s*[\-\:]\s*/i)!==-1)x=d.split(/\s*[\-\:]\s*/)[0].toLowerCase(),p=x.length;setTimeout(function(){switch(x){case "j":d=d.replace(/^j\s*\-/i,"j-");n=d.indexOf("-",2);n===-1?Na(d.slice(2)):Na(d.substr(2,n-2).replace(/\s/g,w),d.slice(n+1));break;case "javascript":$(d.replace(/^javascript\s*\:/i,w));break;case "n":d.replace(/^n\s*\-/i,"n-");l.open(c(d.slice(2),f));break;case "f":d=d.replace(/^f\s*\-/i,"f-");n=d.indexOf("-",2);n!==-1?(C=d.substr(2,n-2))&&l.frames[C]?
l.frames[C].location=c(d.slice(n+1),f):l.open(c(d.slice(n+1),f),C):l.open(c(d.slice(2),f));break;case "p":d=d.replace(/p\s*\-/i,"p-");n=d.indexOf("-",2);t=d.indexOf(",",2);n===-1&&(n=1);u=c(d.slice(n+1),f);l.open(u,d.substr(2,t-2),d.substr(t+1,n-t-1)).focus();break;case "newchart":case "newmap":d.charAt(p)===":"&&(n=d.indexOf("-",p+1),m=d.substring(p+1,n),p=n);n=d.indexOf("-",p+1);h=d.substring(p+1,n).toLowerCase();switch(h){case "xmlurl":case "jsonurl":z=d.substring(n+1,d.length);break;case "xml":case "json":var g=
S=d.substring(n+1,d.length),j={chart:{}},k,g=g.toLowerCase();if(a.linkeddata)for(k=0;k<a.linkeddata.length;k+=1)a.linkeddata[k].id.toLowerCase()===g&&(j=a.linkeddata[k].linkedchart||a.linkeddata[k].linkedmap);z=j;h="json"}i.raiseEvent("LinkedChartInvoked",{alias:m,linkType:h.toUpperCase(),data:z},b);break;default:l.location.href=d}i.raiseEvent("linkclicked",{linkProvided:e,linkInvoked:d,linkAction:x&&x.toLowerCase()},b)},0)}}},graphics:{parseAlpha:fa,convertColor:sa,getDarkColor:pa,getLightColor:xa,
mapSymbolName:function(a,b){var c=ya.circle,a=f(a);a>=3&&(c=(b?ya.spoke:ya.poly)+a);return c},getColumnColor:function(a,b,c,f,g,j,d,n,e){var t,u;t=a.split(",");u=b.split(",");j=j.split(",");d=d.split(",");a=a.replace(/\s/g,w).replace(/\,$/,w);e?n={FCcolor:{color:t[0],alpha:u[0]}}:g?(a=t[0],u=u[0],n={FCcolor:{color:pa(a,75)+","+xa(a,25)+","+pa(a,80)+","+xa(a,65)+","+pa(a,80),alpha:u+","+u+","+u+","+u+","+u,ratio:"0,10,13,57,20",angle:n?"90":"0"}},j=[pa(a,70)]):(b=fa(b,t.length),n={FCcolor:{color:a,
alpha:b,ratio:c,angle:n?-f:f}});return[n,{FCcolor:{color:j[0],alpha:d[0]}}]},getAngle:function(a,b,c){a=Math.atan(b/a)*180/Math.PI;c==2?a=180-a:c==3?a+=180:c==4&&(a=360-a);return a},parseColor:V,getValidColor:function(a){return E.test(V(a))&&a},HSBtoRGB:function(a){var b=a[0],c=0,f=0,g=0,j=[],j=a[1]/100,a=a[2]/100,d=b/60-Math.floor(b/60),n=a*(1-j),e=a*(1-d*j),j=a*(1-(1-d)*j);switch(Math.floor(b/60)%6){case 0:c=a;f=j;g=n;break;case 1:c=e;f=a;g=n;break;case 2:c=n;f=a;g=j;break;case 3:c=n;f=e;g=a;break;
case 4:c=j;f=n;g=a;break;case 5:c=a,f=n,g=e}return j=[B(c*255),B(f*255),B(g*255)]},RGBtoHSB:function(a){var b=a[0],c=a[1],a=a[2],f=Math.max(Math.max(b,c),a),g=Math.min(Math.min(b,c),a),j=0,d=0;f==g?j=0:f==b?j=(60*(c-a)/(f-g)+360)%360:f==c?j=60*(a-b)/(f-g)+120:f==a&&(j=60*(b-c)/(f-g)+240);d=f==0?0:(f-g)/f;return[B(j),B(d*100),B(f/255*100)]},RGBtoHex:function(a){return("000000"+(a[0]<<16|a[1]<<8|a[2]).toString(16)).slice(-6)},HEXtoRGB:function(a){var a=parseInt(a,16),b=Math.floor(a/65536),c=Math.floor((a-
b*65536)/256);return[b,c,Math.floor(a-b*65536-c*256)]}},setImageDisplayMode:function(a,b,c,f,g,j,d,n){var e=n.width*(f/100),f=n.height*(f/100),n={},t,u=j-g*2;t=d-g*2;var x=function(a,b,c,f,j,d){var n={};switch(a){case "top":n.y=g;break;case "bottom":n.y=d-f-g;break;case "middle":n.y=(d-f)/2}switch(b){case "left":n.x=g;break;case "right":n.x=j-c-g;break;case "middle":n.x=(j-c)/2}return n};switch(a){case "center":n.width=e;n.height=f;n.y=d/2-f/2;n.x=j/2-e/2;break;case "stretch":n.width=j-g*2;n.height=
d-g*2;n.y=g;n.x=g;break;case "tile":n.width=e;n.height=f;n.tileInfo={};n.tileInfo.xCount=a=Math.ceil(u/e);n.tileInfo.yCount=t=Math.ceil(t/f);alignObj=x(b,c,e*a,f*t,j,d);n.y=alignObj.y;n.x=alignObj.x;break;case "fit":a=e/f>u/t?u/e:t/f;n.width=e*a;n.height=f*a;alignObj=x(b,c,n.width,n.height,j,d);n.y=alignObj.y;n.x=alignObj.x;break;case "fill":a=e/f>u/t?t/f:u/e;n.width=e*a;n.height=f*a;alignObj=x(b,c,n.width,n.height,j,d);n.y=alignObj.y;n.x=alignObj.x;break;default:alignObj=x(b,c,e,f,j,d),n.width=e,
n.height=f,n.y=alignObj.y,n.x=alignObj.x}return n},setLineHeight:Ja,supportedStyle:Aa,getAxisLimits:ja,createTrendLine:Pa,getDashStyle:Sa,axisLabelAdder:Va,chartAPI:$a,createDialog:Da,defaultPaletteOptions:{bgColor:["CBCBCB,E9E9E9","CFD4BE,F3F5DD","C5DADD,EDFBFE","A86402,FDC16D","FF7CA0,FFD1DD"],bgAngle:[270,270,270,270,270],bgRatio:["0,100","0,100","0,100","0,100","0,100"],bgAlpha:["50,50","60,50","40,20","20,10","30,30"],canvasBgColor:["FFFFFF","FFFFFF","FFFFFF","FFFFFF","FFFFFF"],canvasBgAngle:[0,
0,0,0,0],canvasBgAlpha:["100","100","100","100","100"],canvasBgRatio:[w,w,w,w,w],canvasBorderColor:["545454","545454","415D6F","845001","68001B"],canvasBorderAlpha:[100,100,100,90,100],showShadow:[0,1,1,1,1],divLineColor:["717170","7B7D6D","92CDD6","965B01","68001B"],divLineAlpha:[40,45,65,40,30],altHGridColor:["EEEEEE","D8DCC5","99C4CD","DEC49C","FEC1D0"],altHGridAlpha:[50,35,10,20,15],altVGridColor:["767575","D8DCC5","99C4CD","DEC49C","FEC1D0"],altVGridAlpha:[10,20,10,15,10],anchorBgColor:["FFFFFF",
"FFFFFF","FFFFFF","FFFFFF","FFFFFF"],toolTipBgColor:["FFFFFF","FFFFFF","FFFFFF","FFFFFF","FFFFFF"],toolTipBorderColor:["545454","545454","415D6F","845001","68001B"],baseFontColor:["555555","60634E","025B6A","A15E01","68001B"],borderColor:["767575","545454","415D6F","845001","68001B"],borderAlpha:[50,50,50,50,50],legendBgColor:["FFFFFF","FFFFFF","FFFFFF","FFFFFF","FFFFFF"],legendBorderColor:["545454","545454","415D6F","845001","D55979"],plotGradientColor:["FFFFFF","FFFFFF","FFFFFF","FFFFFF","FFFFFF"],
plotBorderColor:["333333","8A8A8A","FFFFFF","FFFFFF","FFFFFF"],plotFillColor:["767575","D8DCC5","99C4CD","DEC49C","FEC1D0"],bgColor3D:["FFFFFF","FFFFFF","FFFFFF","FFFFFF","FFFFFF"],bgAlpha3D:["100","100","100","100","100"],bgAngle3D:[90,90,90,90,90],bgRatio3D:[w,w,w,w,w],canvasBgColor3D:["DDE3D5","D8D8D7","EEDFCA","CFD2D8","FEE8E0"],canvasBaseColor3D:["ACBB99","BCBCBD","C8A06C","96A4AF","FAC7BC"],divLineColor3D:["ACBB99","A4A4A4","BE9B6B","7C8995","D49B8B"],divLineAlpha3D:[100,100,100,100,100],legendBgColor3D:["F0F3ED",
"F3F3F3","F7F0E8","EEF0F2","FEF8F5"],legendBorderColor3D:["C6CFB8","C8C8C8","DFC29C","CFD5DA","FAD1C7"],toolTipbgColor3D:["FFFFFF","FFFFFF","FFFFFF","FFFFFF","FFFFFF"],toolTipBorderColor3D:["49563A","666666","49351D","576373","681C09"],baseFontColor3D:["49563A","4A4A4A","49351D","48505A","681C09"],anchorBgColor3D:["FFFFFF","FFFFFF","FFFFFF","FFFFFF","FFFFFF"]}})}})();
(function(i){i.fn.drag=function(d,e,h){var l=typeof d=="string"?d:"",q=i.isFunction(d)?d:i.isFunction(e)?e:null;l.indexOf("drag")!==0&&(l="drag"+l);h=(d==q?e:h)||{};return q?this.bind(l,h,q):this.trigger(l)};var l=i.event,w="ontouchstart"in document.documentElement,q=w?"touchstart":"mousedown",d=w?"touchmove touchend":"mousemove mouseup",h=function(d,e){var h;if(!e.touchXY||!d.originalEvent)return d;h=d.originalEvent||d.sourceEvent;(h=h.changedTouches||h.touches)&&h.length&&i.extend(d,h[0]);return d},
aa=l.special,e=aa.drag={defaults:{which:1,distance:0,not:":input",handle:null,relative:!1,drop:!1,click:!1,touchXY:!0},datakey:"dragdata",livekey:"livedrag",add:function(d){var h=i.data(this,e.datakey)||i.data(this,e.datakey,i.extend({related:0},e.defaults)),q=d.data||{};h.related+=1;if(!h.live&&d.selector)h.live=!0,l.add(this,"draginit."+e.livekey,e.delegate);i.each(e.defaults,function(d){q[d]!==void 0&&(h[d]=q[d])})},remove:function(){(i.data(this,e.datakey)||{}).related-=1},setup:function(){if(!i.data(this,
e.datakey)){var d=i.extend({related:0},e.defaults);i.data(this,e.datakey,d);l.add(this,q,e.init,d);this.attachEvent&&this.attachEvent("ondragstart",e.dontstart)}},teardown:function(){(i.data(this,e.datakey)||{}).related||(i.removeData(this,e.datakey),l.remove(this,q,e.init),l.remove(this,"draginit",e.delegate),e.textselect(!0),this.detachEvent&&this.detachEvent("ondragstart",e.dontstart))},init:function(k){var r=k.data,q;if((q=(q=k.originalEvent||k.sourceEvent)?q.changedTouches||q.touches:[])&&q.length)if(q.length>
1)return;else h(k,r);else if(r.which>0&&k.which!=r.which)return;if(!i(k.target).is(r.not)&&(!r.handle||i(k.target).closest(r.handle,k.currentTarget).length))if(r.propagates=1,r.interactions=[e.interaction(this,r)],r.target=k.target,r.pageX=k.pageX,r.pageY=k.pageY,r.dragging=null,q=e.hijack(k,"draginit",r),r.propagates){if((q=e.flatten(q))&&q.length)r.interactions=[],i.each(q,function(){r.interactions.push(e.interaction(this,r))});r.propagates=r.interactions.length;r.drop!==!1&&aa.drop&&aa.drop.handler(k,
r);e.textselect(!1);l.add(document,d,e.handler,r);if(!w)return!1}},interaction:function(d,h){return{drag:d,callback:new e.callback,droppable:[],offset:i(d)[h.relative?"position":"offset"]()||{top:0,left:0}}},handler:function(k){var i=k.data,q;if(!i.dragging&&(k.type==="mousemove"||k.type==="touchmove")){if(Math.pow(k.pageX-i.pageX,2)+Math.pow(k.pageY-i.pageY,2)<Math.pow(i.distance,2))return;k.target=i.target;e.hijack(k,"dragstart",i);if(i.propagates)i.dragging=!0}switch(k.type){case "touchmove":q=
k.originalEvent||k.sourceEvent,q=q.touches,i.dragging&&(q&&q.length>1||k.preventDefault(),h(k,i));case "mousemove":if(i.dragging){e.hijack(k,"drag",i);if(i.propagates){i.drop!==!1&&aa.drop&&aa.drop.handler(k,i);break}k.type="mouseup"}case "touchend":i.dragging&&h(k,i);case "mouseup":if(l.remove(document,d,e.handler),i.dragging&&(i.drop!==!1&&aa.drop&&aa.drop.handler(k,i),e.hijack(k,"dragend",i)),e.textselect(!0),i.click===!1&&i.dragging)jQuery.event.triggered=!0,setTimeout(function(){jQuery.event.triggered=
!1},20),i.dragging=!1}},delegate:function(d){var h=[],q,D=i.data(this,"events")||{};i.each(D.live||[],function(D,E){if(E.preType.indexOf("drag")===0&&(q=i(d.target).closest(E.selector,d.currentTarget)[0]))l.add(q,E.origType+"."+e.livekey,E.origHandler,E.data),i.inArray(q,h)<0&&h.push(q)});if(!h.length)return!1;return i(h).bind("dragend."+e.livekey,function(){l.remove(this,"."+e.livekey)})},hijack:function(d,h,q,D,w){if(q){var E={event:d.originalEvent,type:d.type},H=h.indexOf("drop")?"drag":"drop",
L,B=D||0,aa,P,D=!isNaN(D)?D:q.interactions.length;d.type=h;d.sourceEvent=E.event;d.originalEvent=null;q.results=[];do if((aa=q.interactions[B])&&!(h!=="dragend"&&aa.cancelled)){P=e.properties(d,q,aa);aa.results=[];i(w||aa[H]||q.droppable).each(function(D,x){L=(P.target=x)?l.handle.call(x,d,P):null;if(L===!1){if(H=="drag")aa.cancelled=!0,q.propagates-=1;h=="drop"&&(aa[H][D]=null)}else h=="dropinit"&&aa.droppable.push(e.element(L)||x);if(h=="dragstart")aa.proxy=i(e.element(L)||aa.drag)[0];aa.results.push(L);
delete d.result;if(h!=="dropinit")return L});q.results[B]=e.flatten(aa.results);if(h=="dropinit")aa.droppable=e.flatten(aa.droppable);h=="dragstart"&&!aa.cancelled&&P.update()}while(++B<D);d.type=E.type;d.originalEvent=E.event;return e.flatten(q.results)}},properties:function(d,h,l){var i=l.callback;i.drag=l.drag;i.proxy=l.proxy||l.drag;i.startX=h.pageX;i.startY=h.pageY;i.deltaX=d.pageX-h.pageX;i.deltaY=d.pageY-h.pageY;i.originalX=l.offset.left;i.originalY=l.offset.top;i.offsetX=d.pageX-(h.pageX-
i.originalX);i.offsetY=d.pageY-(h.pageY-i.originalY);i.drop=e.flatten((l.drop||[]).slice());i.available=e.flatten((l.droppable||[]).slice());return i},element:function(d){if(d&&(d.jquery||d.nodeType==1))return d},flatten:function(d){return i.map(d,function(d){return d&&d.jquery?i.makeArray(d):d&&d.length?e.flatten(d):d})},textselect:function(d){i(document)[d?"unbind":"bind"]("selectstart",e.dontstart).attr("unselectable",d?"off":"on").css("MozUserSelect",d?"":"none")},dontstart:function(){return!1},
callback:function(){}};e.callback.prototype={update:function(){aa.drop&&this.available.length&&i.each(this.available,function(d){aa.drop.locate(this,d)})}};aa.draginit=aa.dragstart=aa.dragend=e})(jQuery);
(function(i){function l(l){var d=l||window.event,h=[].slice.call(arguments,1),w=0,e=0,k=0,l=i.event.fix(d);l.type="wheelchange";l.wheelDelta&&(w=l.wheelDelta/120);l.detail&&(w=-l.detail/3);k=w;d.axis!==void 0&&d.axis===d.HORIZONTAL_AXIS&&(k=0,e=-1*w);d.wheelDeltaY!==void 0&&(k=d.wheelDeltaY/120);d.wheelDeltaX!==void 0&&(e=-1*d.wheelDeltaX/120);h.unshift(l,w,e,k);return i.event.handle.apply(this,h)}var w=["DOMMouseScroll","mousewheel"];i.event.special.wheelchange={setup:function(){if(this.addEventListener)for(var i=
w.length;i;)this.addEventListener(w[--i],l,!1);else this.onmousewheel=l},teardown:function(){if(this.removeEventListener)for(var i=w.length;i;)this.removeEventListener(w[--i],l,!1);else this.onmousewheel=null}};i.fn.extend({wheelchange:function(i){return i?this.bind("wheelchange",i):this.trigger("wheelchange")},unwheelchange:function(i){return this.unbind("wheelchange",i)}})})(jQuery);
FusionCharts(["private","modules.renderer.js-smartlabel",function(){var i=this.hcLib,l=i.isIE,w=i.hasSVG,q=document,d=!!q.createElement("canvas").getContext,h=function(){function h(d,e,x,m){if(!d||!d.length)return 0;var p,v=m?function(a){return m.measureText(a).width}:function(a){x.innerHTML=a;return x.offsetWidth},b=0,c=0,c=v(d),j=c/d.length;p=e;b=Math.ceil(e/j);if(c<e)return d.length-1;if(b>d.length)p=e-c,b=d.length;for(;p>0;)if(p=e-v(d.substr(0,b)),c=Math.floor(p/j))b+=c;else return b;for(;p<0;)if(p=
e-v(d.substr(0,b)),c=Math.floor(p/j))b+=c;else break;return b}function e(d,e){e=e>5?e:5;this.maxContainers=e<20?e:20;this.last=this.first=null;this.containers={};this.length=0;this.rootNode=d}function k(d,h,m){if(!(typeof d==="undefined"||typeof d==="object")){this.id=d;var p,y;typeof h==="string"&&(h=q.getElementById(h));if(h&&h.offsetWidth&&h.offsetHeight){if(h.appendChild)h.appendChild(p=document.createElement("div")),p.className="_SmartLabel_Container"}else if((d=document.getElementsByTagName("body")[0])&&
d.appendChild)p=document.createElement("div"),p.className="_SmartLabel_Container",x+=1,d.appendChild(p);p=this.parentContainer=p;for(y in D)p.style[y]=D[y];this.containerManager=new e(p,10);this.showNoEllipses=!m;this.init=!0;this.style={};this.setStyle()}}var r=i.supportedStyle,ha={fontWeight:1,"font-weight":1,fontStyle:1,"font-style":1,fontSize:1,"font-size":1,fontFamily:1,"font-family":1},D={position:"absolute",top:"-9999em",whiteSpace:"nowrap",padding:"0px",width:"1px",height:"1px",overflow:"hidden"},
ba=0,E=/\b_SmartLabel\b/,H=/\b_SmartLabelBR\b/,L=/(\<[^\<\>]+?\>)|(&(?:[a-z]+|#[0-9]+);|.)/ig,B=RegExp("\\<span[^\\>]+?_SmartLabel[^\\>]{0,}\\>(.*?)\\<\\/span\\>","ig"),ia=/<[^>][^<]*[^>]+>/i,P=0,M=0,x=0,m,p,R;q.getElementsByClassName?(m="getElementsByClassName",p="_SmartLabel",R=!0):(m="getElementsByTagName",p="span",R=!1);e.prototype={get:function(d){var e=this.containers,h=this.length,x=this.maxContainers,m,p="",b="",b=this.getCanvasFont(d);for(m in r)d[m]!==void 0&&(p+=r[m]+":"+d[m]+";");if(!p)return!1;
if(e[p]){if(p=e[p],this.first!==p)p.prev&&(p.prev.next=p.next),p.next&&(p.next.prev=p.prev),p.next=this.start,p.prev=null,this.last===p&&(this.last=p.prev),this.start=p}else{if(h>=x)for(d=h-x+1;d--;)this.removeContainer(this.last);p=this.addContainer(p,b)}return p},getCanvasFont:function(e){var h,x=[];if(!d)return!1;for(h in ha)e[h]!==void 0&&x.push(e[h]);return x.join(" ")},setMax:function(d){var e=this.length,d=d>5?d:5,d=d<20?d:20;if(d<e){for(e-=d;e--;)this.removeContainer(this.last);this.length=
d}this.maxContainers=d},addContainer:function(d,e){var h,x;this.containers[d]=x={next:null,prev:null,node:null,ellipsesWidth:0,lineHeight:0,dotWidth:0,avgCharWidth:4,keyStr:d,canvasStr:e,charCache:{}};x.next=this.start;x.next&&(x.next.prev=x);this.start=x;this.length+=1;h=x.node=q.createElement("span");this.rootNode.appendChild(h);l&&!w?h.style.setAttribute("cssText",d):h.setAttribute("style",d);h.style.display="inline-block";h.innerHTML="WgI";x.lineHeight=h.offsetHeight;x.avgCharWidth=h.offsetWidth/
3;e?(h=x.canvas=q.createElement("canvas"),h.style.height=h.style.width="0px",this.rootNode.appendChild(h),x.context=h=h.getContext("2d"),h.font=e,x.ellipsesWidth=h.measureText("...").width,x.dotWidth=h.measureText(".").width):(h.innerHTML="...",x.ellipsesWidth=h.offsetWidth,h.innerHTML=".",x.dotWidth=h.offsetWidth,h.innerHTML="");return x},removeContainer:function(d){var e=d.keyStr;if(e&&this.length&&d)this.length-=1,d.prev&&(d.prev.next=d.next),d.next&&(d.next.prev=d.prev),this.first===d&&(this.first=
d.next),this.last===d&&(this.last=d.prev),delete this.containers[e],delete d}};e.prototype.constructor=e;k.prototype={dispose:function(){var d=this.container,e;if(this.init){if(d&&(e=d.parentNode))e.removeChild(d),delete this.container;delete this.id;delete this.style;delete this.parentContainer;delete this.showNoEllipses}},useEllipsesOnOverflow:function(d){if(this.init)this.showNoEllipses=!d},getSmartText:function(d,e,x,i){if(!this.init)return!1;if(d===void 0||d===null)d="";var y={text:d,maxWidth:e,
maxHeight:x,width:null,height:null,oriTextWidth:null,oriTextHeight:null,oriText:d,isTruncated:!1},l=!1,b,c,j,a,g=-1,f=-1,t=-1,u=this.container,S=this.context,U=0,k=0,q,D=[],r=0,w=this.showNoEllipses?"":"...",g=this.lineHeight,V=function(a){for(var a=a.replace(/^\s\s*/,""),b=/\s/,c=a.length;b.test(a.charAt(c-=1)););return a.slice(0,c+1)};q=S?function(a){return S.measureText(a).width}:function(a){u.innerHTML=a;return u.offsetWidth};if(u){u.innerHTML=d;y.oriTextWidth=j=u.offsetWidth;y.oriTextHeight=
l=u.offsetHeight;if(l<=x&&j<=e)return y.width=y.oriTextWidth=j,y.height=y.oriTextHeight=l,y;if(g>x)return y.text="",y.width=y.oriTextWidth=0,y.height=y.oriTextHeight=0,y;d=V(d).replace(/(\s+)/g," ");l=ia.test(d);j=this.showNoEllipses?e:e-ba;if(l){a=d.replace(L,"$2");d=d.replace(L,'$1<span class="_SmartLabel">$2</span>');d=d.replace(/(\<br\s*\/*\>)/g,"<span class='_SmartLabel _SmartLabelBR'>$1</span>");u.innerHTML=d;r=u[m](p);q=[];U=f=-1;l=0;for(V=r.length;l<V;l+=1)if(d=r[l],R||E.test(d.className))if(g=
d.innerHTML,g!=""){if(g==" ")U=q.length;else if(g=="-")f=q.length;q.push({spaceIdx:U,dashIdx:f,elem:d});D.push(g)}delete r;r=0;l=q.length;P=q[0].elem.offsetWidth;if(P>e)return y.text="",y.width=y.oriTextWidth=y.height=y.oriTextHeight=0,y;else P>j&&!this.showNoEllipses&&(j=e-2*M,j>P?w="..":(j=e-M,j>P?w=".":(j=0,w="")));if(i)for(;r<l;r+=1)d=q[r].elem,i=d.offsetLeft+d.offsetWidth,i>j&&(c||(c=r),u.offsetWidth>e&&(b=r,r=l));else for(;r<l;r+=1)if(d=q[r].elem,V=d.offsetHeight+d.offsetTop,i=d.offsetLeft+
d.offsetWidth,D=null,i>j){if(c||(c=r),i>e)f=q[r].spaceIdx,g=q[r].dashIdx,f>t?(q[f].elem.innerHTML="<br/>",t=f):g>t?(q[g].elem.innerHTML=g===r?"<br/>-":"-<br/>",t=g):d.parentNode.insertBefore(D=document.createElement("br"),d),d.offsetHeight+d.offsetTop>x?(D?D.parentNode.removeChild(D):t===g?q[g].elem.innerHTML="-":q[f].elem.innerHTML=" ",b=r,r=l):c=null}else V>x&&(b=r,r=l);if(b<l){y.isTruncated=!0;c=c?c:b;for(r=l-1;r>=c;r-=1)d=q[r].elem,d.parentNode.removeChild(d);for(;r>=0;r-=1)d=q[r].elem,H.test(d.className)?
d.parentNode.removeChild(d):r=0}y.text=u.innerHTML.replace(B,"$1");if(y.isTruncated)y.text+=w,y.tooltext=a}else{D=d.split("");l=D.length;b="";c=[];g=D[0];this.cache[g]?P=this.cache[g].width:(P=q(g),this.cache[g]={width:P});if(j>P)c=d.substr(0,h(d,j,u,S)).split(""),r=c.length;else if(P>e)return y.text="",y.width=y.oriTextWidth=y.height=y.oriTextHeight=0,y;else w&&(j=e-2*M,j>P?w="..":(j=e-M,j>P?w=".":(j=0,w="")));U=q(c.join(""));k=this.lineHeight;if(i)for(;r<l;r+=1){if(g=c[r]=D[r],this.cache[g]?P=this.cache[g].width:
(P=q(g),this.cache[g]={width:P}),U+=P,a=c.join(""),U>j&&(b||(b=a.substr(0,a.length-1)),U>e))return u.innerHTML=y.text=V(b)+w,y.tooltext=y.oriText,y.width=u.offsetWidth,y.height=u.offsetHeight,y}else for(;r<l;r+=1)if(g=c[r]=D[r],g===" "&&!S&&(g="&nbsp;"),this.cache[g]?P=this.cache[g].width:(P=q(g),this.cache[g]={width:P}),U+=P,a=c.join(""),U>j&&(b||(b=a.substr(0,a.length-1)),U>e))if(f=d.substr(0,c.length).lastIndexOf(" "),g=d.substr(0,c.length).lastIndexOf("-"),f>t?(c.splice(f,1,"<br/>"),t=f,i=f+1):
g>t?(g===c.length-1?c.splice(g,1,"<br/>-"):c.splice(g,1,"-<br/>"),t=g,i=g+1):(c.splice(c.length-1,1,"<br/>"+D[r]),i=r),u.innerHTML=a=c.join(""),k+=this.lineHeight,k>x)return y.text=u.innerHTML=V(b)+w,y.tooltext=y.oriText,y.width=u.offsetWidth,y.height=u.offsetHeight,y;else b=null,g=h(d.substr(i),j,u,S),c.length<i+g&&(U=q(d.substring(i,i+g-1)),c=c.concat(d.substr(c.length,i+g-1-c.length).split("")),r=c.length-1);y.text=u.innerHTML=a;y.width=u.offsetWidth;y.height=u.offsetHeight;return y}y.height=u.offsetHeight;
y.width=u.offsetWidth}else y.error=Error("Body Tag Missing!");return y},setStyle:function(d){if(!this.init)return!1;if(d!==this.style||this.styleNotSet){if(!d)d=this.style;this.style=d;(this.containerObj=d=this.containerManager.get(d))?(this.container=d.node,this.context=d.context,this.cache=d.charCache,this.lineHeight=d.lineHeight,ba=d.ellipsesWidth,M=d.dotWidth,this.styleNotSet=!1):this.styleNotSet=!0}},getTextSize:function(d,e,h){if(!this.init)return!1;var x={text:d,width:null,height:null,oriTextWidth:null,
oriTextHeight:null,isTruncated:!1},p=this.container;if(p&&(p.innerHTML=d,x.oriTextWidth=p.offsetWidth,x.oriTextHeight=p.offsetHeight,x.width=Math.min(x.oriTextWidth,e),x.height=Math.min(x.oriTextHeight,h),x.width<x.oriTextWidth||x.height<x.oriTextHeight))x.isTruncated=!0;return x},getOriSize:function(d){if(!this.init)return!1;var e={text:d,width:null,height:null},h=this.container;if(h)h.innerHTML=d,e.width=h.offsetWidth,e.height=h.offsetHeight;return e}};return k.prototype.constructor=k}();i.SmartLabelManager=
h}]);
FusionCharts(["private","modules.renderer.js-numberformatter",function(){var i=this.hcLib,l=i.pluckNumber,w=i.extend2,q=i.getValidValue,l=i.pluckNumber,d=i.pluck,h=i.getFirstValue,aa=Math.abs,e=Math.pow,k=Math.round,r="",ha="0",D=".",ba="-",E=function(d){return d&&d.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")};i.NumberFormatter=function(){function i(d,h,p){var l;if(h<=0)return k(d)+r;if(isNaN(h))return d+=r,d.length>12&&d.indexOf(D)!=-1&&(h=12-d.split(D)[0].length,l=e(10,h),d=k(d*l)/l+r),d;l=e(10,
h);d=k(d*l)/l+r;if(p==1){d.indexOf(D)==-1&&(d+=".0");p=d.split(D);h-=p[1].length;for(p=1;p<=h;p++)d+=ha}return d}function L(d,e,h,l){var i=Number(d);if(isNaN(i))return r;var k=r,q=!1,L=r,y=r,v=L=0,L=0,v=d.length;d.indexOf(D)!=-1&&(k=d.substring(d.indexOf(D)+1,d.length),v=d.indexOf(D));i<0&&(q=!0,L=1);L=d.substring(L,v);d=L.length;i=l.length-1;v=l[i];if(d<v)y=L;else for(;d>=v;)y=(d-v?h:r)+L.substr(d-v,v)+y,d-=v,v=(i-=1)<=0?l[0]:l[i],d<v&&(y=L.substring(d,0)+y);k!=r&&(y=y+e+k);q==!0&&(y=ba+y);return y}
var B={formatnumber:"1",formatnumberscale:"1",defaultnumberscale:r,numberscaleunit:["K","M"],numberscalevalue:[1E3,1E3],numberprefix:r,numbersuffix:r,decimals:r,forcedecimals:ha,yaxisvaluedecimals:"2",decimalseparator:D,thousandseparator:",",thousandseparatorposition:[3],indecimalseparator:r,inthousandseparator:r,sformatnumber:"1",sformatnumberscale:ha,sdefaultnumberscale:r,snumberscaleunit:["K","M"],snumberscalevalue:[1E3,1E3],snumberprefix:r,snumbersuffix:r,sdecimals:"2",sforcedecimals:ha,syaxisvaluedecimals:"2",
xFormatNumber:ha,xFormatNumberScale:ha,xDefaultNumberScale:r,xNumberScaleUnit:["K","M"],xNumberScaleValue:[1E3,1E3],xNumberPrefix:r,xNumberSuffix:r},ia={mscombidy2d:{formatnumberscale:"1"}},P=function(e,m,p){var i,k,r,D,L,y,v,b,c,j=m.name,a=w({},B),g,f;(r=ia[j])&&(a=w(a,r));this.csConf=a;this.chartAPI=m;q(e.numberscaleunit)&&(i=e.numberscaleunit.split(","));if(k=q(e.snumberscaleunit,e.numberscaleunit))k=k.split(",");if(r=q(e.xnumberscaleunit,e.numberscaleunit))r=r.split(",");if(D=q(e.ticknumberscaleunit,
e.numberscaleunit))D=D.split(",");if(L=q(e.ynumberscaleunit,e.numberscaleunit))L=L.split(",");q(e.numberscalevalue)&&(y=e.numberscalevalue.split(","));if(f=q(e.snumberscalevalue,e.numberscalevalue))f=f.split(",");if(v=q(e.xnumberscalevalue,e.numberscalevalue))v=v.split(",");if(b=q(e.ticknumberscalevalue,e.numberscalevalue))b=b.split(",");if(c=q(e.ynumberscalevalue,e.numberscalevalue))c=c.split(",");if(q(e.thousandseparatorposition)){g=e.thousandseparatorposition.split(",");for(var t=g.length,u,S=
B.thousandseparatorposition[0];t--;)u=parseInt(g[t],10),u>0||(u=S),S=g[t]=u}m||(m={});t=l(e.scalerecursively,0);u=l(e.sscalerecursively,t);var S=l(e.xscalerecursively,t),U=l(e.maxscalerecursion,-1),H=l(e.smaxscalerecursion,U),M=l(e.xmaxscalerecursion,U),aa=q(e.scaleseparator," "),P=q(e.sscaleseparator,aa),ba=q(e.xscaleseparator,aa);U||(U=-1);this.baseConf=i={cacheStore:[],formatnumber:d(e.formatnumber,m.formatnumber,a.formatnumber),formatnumberscale:d(e.formatnumberscale,m.formatnumberscale,a.formatnumberscale),
defaultnumberscale:h(e.defaultnumberscale,m.defaultnumberscale,a.defaultnumberscale),numberscaleunit:d(i,m.numberscaleunit,a.numberscaleunit).concat(),numberscalevalue:d(y,m.numberscalevalue,a.numberscalevalue).concat(),numberprefix:h(e.numberprefix,m.numberprefix,a.numberprefix),numbersuffix:h(e.numbersuffix,m.numbersuffix,a.numbersuffix),decimalprecision:parseInt(e.decimals==="auto"?a.decimalprecision:d(e.decimals,e.decimalprecision,m.decimals,a.decimals,m.decimalprecision,a.decimalprecision),10),
forcedecimals:d(e.forcedecimals,m.forcedecimals,a.forcedecimals),decimalseparator:d(e.decimalseparator,m.decimalseparator,a.decimalseparator),thousandseparator:d(e.thousandseparator,m.thousandseparator,a.thousandseparator),thousandseparatorposition:d(g,m.thousandseparatorposition,a.thousandseparatorposition),indecimalseparator:h(e.indecimalseparator,m.indecimalseparator,a.indecimalseparator),inthousandseparator:h(e.inthousandseparator,m.inthousandseparator,a.inthousandseparator),scalerecursively:t,
maxscalerecursion:U,scaleseparator:aa};if(q(i.inthousandseparator))this.baseConf._REGinthousandseparator=RegExp(E(i.inthousandseparator),"g");if(q(i.indecimalseparator))this.baseConf._REGindecimalseparator=RegExp(E(i.indecimalseparator));this.Y=[];if(!p){p={cacheStore:[],formatnumber:i.formatnumber,formatnumberscale:i.formatnumberscale,defaultnumberscale:i.defaultnumberscale,numberscaleunit:i.numberscaleunit.concat(),numberscalevalue:i.numberscalevalue.concat(),numberprefix:i.numberprefix,numbersuffix:i.numbersuffix,
decimalprecision:i.decimalprecision,forcedecimals:i.forcedecimals,decimalseparator:i.decimalseparator,thousandseparator:i.thousandseparator,thousandseparatorposition:i.thousandseparatorposition,indecimalseparator:i.indecimalseparator,inthousandseparator:i.inthousandseparator,scalerecursively:t,maxscalerecursion:U,scaleseparator:aa};if(!m.useScaleRecursively||(p.numberscalevalue&&p.numberscalevalue.length)!=(p.numberscaleunit&&p.numberscaleunit.length))p.scalerecursively=t=0;y={cacheStore:[],formatnumber:p.formatnumber,
formatnumberscale:p.formatnumberscale,defaultnumberscale:p.defaultnumberscale,numberscaleunit:p.numberscaleunit.concat(),numberscalevalue:p.numberscalevalue.concat(),numberprefix:p.numberprefix,numbersuffix:p.numbersuffix,decimalprecision:parseInt(d(e.yaxisvaluedecimals,p.decimalprecision,2)),forcedecimals:d(e.forceyaxisvaluedecimals,p.forcedecimals),decimalseparator:p.decimalseparator,thousandseparator:p.thousandseparator,thousandseparatorposition:p.thousandseparatorposition.concat(),indecimalseparator:p.indecimalseparator,
inthousandseparator:p.inthousandseparator,scalerecursively:t,maxscalerecursion:U,scaleseparator:aa};f={cacheStore:[],formatnumber:d(e.sformatnumber,m.sformatnumber,B.sformatnumber),formatnumberscale:d(e.sformatnumberscale,m.sformatnumberscale,B.sformatnumberscale),defaultnumberscale:h(e.sdefaultnumberscale,m.sdefaultnumberscale,p.defaultnumberscale),numberscaleunit:d(k,m.snumberscaleunit,B.snumberscaleunit).concat(),numberscalevalue:d(f,m.snumberscalevalue,B.snumberscalevalue).concat(),numberprefix:h(e.snumberprefix,
m.snumberprefix,B.snumberprefix),numbersuffix:h(e.snumbersuffix,m.snumbersuffix,B.snumbersuffix),decimalprecision:parseInt(d(e.syaxisvaluedecimals,e.sdecimals,e.decimals,m.sdecimals,B.sdecimals),10),forcedecimals:d(e.forcesyaxisvaluedecimals,e.sforcedecimals,e.forcedecimals,m.sforcedecimals,B.sforcedecimals),decimalseparator:d(e.decimalseparator,m.decimalseparator,B.decimalseparator),thousandseparator:d(e.thousandseparator,m.thousandseparator,B.thousandseparator),thousandseparatorposition:p.thousandseparatorposition.concat(),
indecimalseparator:d(e.indecimalseparator,m.indecimalseparator,B.indecimalseparator),inthousandseparator:d(e.inthousandseparator,m.inthousandseparator,B.inthousandseparator),scalerecursively:u,maxscalerecursion:H,scaleseparator:P};k=w({},f);k.decimalprecision=parseInt(d(e.sdecimals,e.decimals,e.syaxisvaluedecimals,m.sdecimals,B.sdecimals),10);k.forcedecimals=d(e.sforcedecimals,e.forcedecimals,e.forcesyaxisvaluedecimals,m.sforcedecimals,B.sforcedecimals);k.cacheStore=[];if(!m.useScaleRecursively||
(f.numberscalevalue&&f.numberscalevalue.length)!=(f.numberscaleunit&&f.numberscaleunit.length))f.scalerecursively=u=0;if(/^(bubble|scatter|selectscatter)$/.test(j))y.formatnumber=d(e.yformatnumber,y.formatnumber),y.formatnumberscale=d(e.yformatnumberscale,y.formatnumberscale),y.defaultnumberscale=h(e.ydefaultnumberscale,y.defaultnumberscale),y.numberscaleunit=d(L,y.numberscaleunit),y.numberscalevalue=d(c,y.numberscalevalue),y.numberprefix=d(e.ynumberprefix,y.numberprefix),y.numbersuffix=d(e.ynumbersuffix,
y.numbersuffix),p.formatnumber=d(e.yformatnumber,p.formatnumber),p.formatnumberscale=d(e.yformatnumberscale,p.formatnumberscale),p.defaultnumberscale=h(e.ydefaultnumberscale,p.defaultnumberscale),p.numberscaleunit=d(e.ynumberscaleunit,p.numberscaleunit.concat()),p.numberscalevalue=d(e.ynumberscalevalue,p.numberscalevalue.concat()),p.numberprefix=d(e.ynumberprefix,p.numberprefix),p.numbersuffix=d(e.ynumbersuffix,p.numbersuffix);if(/^(mscombidy2d|mscombidy3d)$/.test(j))f.formatnumberscale=l(e.sformatnumberscale,
"1");if(/^(pie2d|pie3d|doughnut2d|doughnut3d|marimekko|pareto2d|pareto3d)$/.test(j))p.decimalprecision=d(e.decimals,"2");t&&(p.numberscalevalue.push(1),p.numberscaleunit.unshift(p.defaultnumberscale),y.numberscalevalue.push(1),y.numberscaleunit.unshift(y.defaultnumberscale));u&&(f.numberscalevalue.push(1),f.numberscaleunit.unshift(f.defaultnumberscale),k.numberscalevalue.push(1),k.numberscaleunit.unshift(k.defaultnumberscale));this.Y[0]={yAxisLabelConf:y,dataLabelConf:p};this.Y[1]={yAxisLabelConf:f,
dataLabelConf:k};this.paramLabels=p;this.param1=y;this.param2=f;this.paramLabels2=k}this.paramX={cacheStore:[],formatnumber:d(e.xformatnumber,i.formatnumber),formatnumberscale:d(e.xformatnumberscale,i.formatnumberscale),defaultnumberscale:h(e.xdefaultnumberscale,i.defaultnumberscale),numberscaleunit:d(r,i.numberscaleunit.concat()),numberscalevalue:d(v,i.numberscalevalue.concat()),numberprefix:d(e.xnumberprefix,i.numberprefix),numbersuffix:d(e.xnumbersuffix,i.numbersuffix),decimalprecision:parseInt(d(e.xaxisvaluedecimals,
e.xaxisvaluesdecimals,i.decimalprecision,2),10),forcedecimals:d(e.forcexaxisvaluedecimals,0),decimalseparator:i.decimalseparator,thousandseparator:i.thousandseparator,thousandseparatorposition:i.thousandseparatorposition.concat(),indecimalseparator:i.indecimalseparator,inthousandseparator:i.inthousandseparator,scalerecursively:S,maxscalerecursion:M,scaleseparator:ba};if(!m.useScaleRecursively||(this.paramX.numberscalevalue&&this.paramX.numberscalevalue.length)!=(this.paramX.numberscaleunit&&this.paramX.numberscaleunit.length))this.paramX.scalerecursively=
S=0;S&&(this.paramX.numberscalevalue.push(1),this.paramX.numberscaleunit.unshift(this.paramX.defaultnumberscale));this.paramScale={cacheStore:[],formatnumber:d(e.tickformatnumber,i.formatnumber),formatnumberscale:d(e.tickformatnumberscale,i.formatnumberscale),defaultnumberscale:h(e.tickdefaultnumberscale,i.defaultnumberscale),numberscaleunit:d(D,i.numberscaleunit.concat()),numberscalevalue:d(b,i.numberscalevalue.concat()),numberprefix:d(e.ticknumberprefix,i.numberprefix),numbersuffix:d(e.ticknumbersuffix,
i.numbersuffix),decimalprecision:parseInt(d(e.tickvaluedecimals,i.decimalprecision,"2")),forcedecimals:d(e.forcetickvaluedecimals,i.forcedecimals,0),decimalseparator:i.decimalseparator,thousandseparator:i.thousandseparator,thousandseparatorposition:i.thousandseparatorposition.concat(),indecimalseparator:i.indecimalseparator,inthousandseparator:i.inthousandseparator,scalerecursively:t,maxscalerecursion:U,scaleseparator:aa};t&&(this.paramScale.numberscalevalue.push(1),this.paramScale.numberscaleunit.unshift(this.paramScale.defaultnumberscale));
this.timeConf={inputDateFormat:d(e.inputdateformat,e.dateformat,"mm/dd/yyyy"),outputDateFormat:d(e.outputdateformat,e.inputdateformat,e.dateformat,"mm/dd/yyyy"),days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],daySuffix:["","st","nd","rd","th","th","th","th","th","th","th","th","th","th","th","th","th","th","th","th","th","st","nd","rd","th","th","th",
"th","th","th","th","st"]}};P.prototype={cleaneValueCacheStore:{},percentStrCacheStore:{},dispose:function(){this.Y&&delete this.Y;this.cleaneValueCacheStore&&delete this.cleaneValueCacheStore;this.percentStrCacheStore&&delete this.percentStrCacheStore;this.paramLabels&&delete this.paramLabels;this.param1&&delete this.param1;this.param2&&delete this.param2;this.paramLabels2&&delete this.paramLabels2;this.csConf&&delete this.csConf;this.chartAPI&&delete this.chartAPI;this.baseConf&&delete this.baseConf;
this.timeConf&&delete this.timeConf;this.paramX&&delete this.paramX;this.paramScale&&delete this.paramScale},parseMLAxisConf:function(e,i){var p=this.baseConf,k=this.csConf,r=this.chartAPI,D=l(e.scalerecursively,p.scalerecursively),L=l(e.maxscalerecursion,p.maxscalerecursion),w=q(e.scaleseparator,p.scaleseparator),y,v,b,c,j,a,i=l(i,this.Y.length);q(e.numberscaleunit)&&(y=e.numberscaleunit.split(","));q(e.numberscalevalue)&&(v=e.numberscalevalue.split(","));L||(L=-1);if(q(e.thousandseparatorposition)){b=
e.thousandseparatorposition.split(",");c=b.length;for(a=B.thousandseparatorposition[0];c--;)(j=l(aa(b[c])))?a=j:j=a,b[c]=j}p={cacheStore:[],formatnumber:d(e.formatnumber,p.formatnumber),formatnumberscale:d(e.formatnumberscale,p.formatnumberscale),defaultnumberscale:h(e.defaultnumberscale,p.defaultnumberscale),numberscaleunit:d(y,p.numberscaleunit).concat(),numberscalevalue:d(v,p.numberscalevalue).concat(),numberprefix:h(e.numberprefix,p.numberprefix),numbersuffix:h(e.numbersuffix,p.numbersuffix),
forcedecimals:d(e.forcedecimals,p.forcedecimals),decimalprecision:parseInt(e.decimals==="auto"?k.decimalprecision:d(e.decimals,p.decimalprecision),10),decimalseparator:d(e.decimalseparator,p.decimalseparator),thousandseparator:d(e.thousandseparator,p.thousandseparator),thousandseparatorposition:d(b,p.thousandseparatorposition),indecimalseparator:h(e.indecimalseparator,p.indecimalseparator),inthousandseparator:h(e.inthousandseparator,p.inthousandseparator),scalerecursively:D,maxscalerecursion:L,scaleseparator:w};
if(!r.useScaleRecursively||(p.numberscalevalue&&p.numberscalevalue.length)!=(p.numberscaleunit&&p.numberscaleunit.length))p.scalerecursively=D=0;r={cacheStore:[],formatnumber:p.formatnumber,formatnumberscale:p.formatnumberscale,defaultnumberscale:p.defaultnumberscale,numberscaleunit:p.numberscaleunit.concat(),numberscalevalue:p.numberscalevalue.concat(),numberprefix:p.numberprefix,numbersuffix:p.numbersuffix,decimalprecision:parseInt(d(e.yaxisvaluedecimals,p.decimalprecision,2)),forcedecimals:d(e.forceyaxisvaluedecimals,
p.forcedecimals),decimalseparator:p.decimalseparator,thousandseparator:p.thousandseparator,thousandseparatorposition:p.thousandseparatorposition.concat(),indecimalseparator:p.indecimalseparator,inthousandseparator:p.inthousandseparator,scalerecursively:D,maxscalerecursion:L,scaleseparator:w};D&&(p.numberscalevalue.push(1),p.numberscaleunit.unshift(p.defaultnumberscale),r.numberscalevalue.push(1),r.numberscaleunit.unshift(r.defaultnumberscale));this.Y[i]={dataLabelConf:p,yAxisLabelConf:r}},percentValue:function(d){var e=
this.percentStrCacheStore[d];e===void 0&&(e=isNaN(this.paramLabels.decimalprecision)?"2":this.paramLabels.decimalprecision,e=this.percentStrCacheStore[d]=L(i(d,e,this.paramLabels.forcedecimals),this.paramLabels.decimalseparator,this.paramLabels.thousandseparator,this.paramLabels.thousandseparatorposition)+"%");return e},getCleanValue:function(d,e){var h=this.cleaneValueCacheStore[d];if(h===void 0){var h=d,i=this.baseConf;h+=r;i._REGinthousandseparator&&(h=h.replace(i._REGinthousandseparator,r));i._REGindecimalseparator&&
(h=h.replace(i._REGindecimalseparator,D));h=parseFloat(h);h=isFinite(h)?h:NaN;this.cleaneValueCacheStore[d]=h=isNaN(h)?null:e?aa(h):h}return h},dataLabels:function(d,e){var h=this.Y[e]||(e?this.Y[1]:this.Y[0]),i,h=h&&h.dataLabelConf||this.baseConf;i=h.cacheStore[d];i===void 0&&(i=h.cacheStore[d]=M(d,h));return i},yAxis:function(d,e){var h=this.Y[e]||(e?this.Y[1]:this.Y[0]),i,h=h&&h.yAxisLabelConf||this.baseConf;i=h.cacheStore[d];i===void 0&&(i=h.cacheStore[d]=M(d,h));return i},xAxis:function(d){var e=
this.paramX.cacheStore[d];e===void 0&&(e=this.paramX.cacheStore[d]=M(d,this.paramX));return e},sYAxis:function(d){var e=this.Y[1],h,e=e&&e.yAxisLabelConf||this.baseConf;h=e.cacheStore[d];h===void 0&&(h=e.cacheStore[d]=M(d,e));return h},scale:function(d){var e=this.paramScale.cacheStore[d];e===void 0&&(e=this.paramScale.cacheStore[d]=M(d,this.paramScale));return e},getCleanTime:function(d){var e;this.timeConf.inputDateFormat&&Date.parseExact&&(e=Date.parseExact(d,this.timeConf.inputDateFormat));return e&&
e.getTime()},getDateValue:function(d){var e,h,i,d=/^dd/.test(this.timeConf.inputDateFormat)&&d&&d.replace(/(\d{1,2})\/(\d{1,2})\/(\d{2,4})/,"$2/$1/$3")||d;e=new Date(d);h=e.getTime();!h&&d&&/\:/.test(d)&&(d=d.split(":"),h=l(d[0],0),i=l(d[1],0),d=l(d[2],0),h=h>23?h===24&&i===0&&d===0?h:23:h,i=i>59?59:i,d=d>59?59:d,e=new Date,e.setHours(h),e.setMinutes(i),e.setSeconds(d),h=e.getTime());return{ms:h,date:e}},getFormatedDate:function(e,h){var i=typeof e==="object"&&e||new Date(e),l=this.timeConf,k=d(h,
l.outputDateFormat),q=i.getFullYear(),D=i.getMonth(),L=i.getDate(),y=i.getDay(),v=i.getMinutes(),b=i.getSeconds(),i=i.getHours(),v=v>9?r+v:ha+v,b=b>9?r+b:ha+b,i=i>9?r+i:ha+i;k.match(/dnl/)&&(k=k.replace(/dnl/ig,l.days[y]));k.match(/dns/)&&(k=k.replace(/dns/ig,l.days[y]&&l.days[y].substr(0,3)));k.match(/dd/)&&(k=k.replace(/dd/ig,L));k.match(/mnl/)&&(k=k.replace(/mnl/ig,l.months[D]));k.match(/mns/)&&(k=k.replace(/mns/ig,l.months[D]&&l.months[D].substr(0,3)));k.match(/mm/)&&(k=k.replace(/mm/ig,D+1));
k.match(/yyyy/)&&(k=k.replace(/yyyy/ig,q));k.match(/yy/)&&(k=k.replace(/yy/ig,(q%1E3%100+"").replace(/^(\d)$/,"0$1")));k.match(/hh12/)&&(k=k.replace(/hh12/ig,i%12||12));k.match(/hh/)&&(k=k.replace(/hh/ig,i));k.match(/mn/)&&(k=k.replace(/mn/ig,v));k.match(/ss/)&&(k=k.replace(/ss/ig,b));k.match(/ampm/)&&(k=k.replace(/ampm/ig,i<12?"AM":"PM"));k.match(/ds/)&&(k=k.replace(/ds/ig,l.daySuffix[L]));return k}};P.prototype.constructor=P;var M=function(e,h){if(e!==null){var e=Number(e),k=e+r,q;q=h.formatnumberscale==
1?h.defaultnumberscale:r;var w;w=(w=k.split(D)[1])?w.length:h.forcedecimals?"2":r;if(h.formatnumberscale==1){var E,k=e;q=h.numberscalevalue;E=h.numberscaleunit;var B={},aa=h.defaultnumberscale,y=0,v,b=[],c=[];if(h.scalerecursively){for(y=0;y<q.length;y++)if(v=l(q[y])||1E3,Math.abs(Number(k))>=v&&y<q.length-1)aa=k%v,k=(k-aa)/v,aa!=0&&(b.push(aa),c.push(E[y]));else{b.push(k);c.push(E[y]);break}b.reverse();c.reverse();B.value=b;B.scale=c}else{if(q.length===E.length)for(y=0;y<q.length;y++)if((v=l(q[y])||
1E3)&&Math.abs(Number(k))>=v)aa=E[y]||r,k=Number(k)/v;else break;B.value=k;B.scale=aa}E=B;e=k=E.value;q=E.scale}if(h.scalerecursively&&h.formatnumberscale!=0){q=E.value;E=E.scale;B=h.maxscalerecursion==-1?q.length:Math.min(q.length,h.maxscalerecursion);if(h.formatnumber==1){k="";for(b=0;b<B;b++)y=b==0?q[b]:Math.abs(q[b]),v=y+r,b==B-1&&(v=i(y,d(h.decimalprecision,w),h.forcedecimals)),k=k+L(v,h.decimalseparator,h.thousandseparator,h.thousandseparatorposition)+E[b]+(b<B-1?h.scaleseparator:"")}else{k=
"";for(b=0;b<B;b++)k=k+(b==0?q[b]:Math.abs(q[b])+r)+E[b]+(b<B-1?h.scaleseparator:"")}k=(h.numberprefix||r)+k+(h.numbersuffix||r);delete q;delete E}else h.formatnumber==1&&(k=i(e,d(h.decimalprecision,w),h.forcedecimals),k=L(k,h.decimalseparator,h.thousandseparator,h.thousandseparatorposition)),k=(h.numberprefix||r)+k+q+(h.numbersuffix||r);return k}};return P}()}]);
FusionCharts(["private","modules.renderer.js-raphael",function(){var i=this.hcLib,l,w=window.Raphael,q;(function(d){var h=/[\.\/]/,l=function(){},e=function(d,e){return d-e},k,q,w={n:{}},D=i.eve=function(d,h){var i=q,l=Array.prototype.slice.call(arguments,2),w=D.listeners(d),aa=0,P,M=[],x={},m=[],p=k;k=d;for(var R=q=0,Z=w.length;R<Z;R++)"zIndex"in w[R]&&(M.push(w[R].zIndex),w[R].zIndex<0&&(x[w[R].zIndex]=w[R]));for(M.sort(e);M[aa]<0;)if(P=x[M[aa++]],m.push(P.apply(h,l)),q)return q=i,m;for(R=0;R<Z;R++)if(P=
w[R],"zIndex"in P)if(P.zIndex==M[aa]){m.push(P.apply(h,l));if(q)break;do if(aa++,(P=x[M[aa]])&&m.push(P.apply(h,l)),q)break;while(P)}else x[P.zIndex]=P;else if(m.push(P.apply(h,l)),q)break;q=i;k=p;return m.length?m:null};D.listeners=function(d){var d=d.split(h),e=w,i,k,l,q,r,D,x,m=[e],p=[];l=0;for(q=d.length;l<q;l++){x=[];r=0;for(D=m.length;r<D;r++){e=m[r].n;i=[e[d[l]],e["*"]];for(k=2;k--;)if(e=i[k])x.push(e),p=p.concat(e.f||[])}m=x}return p};D.on=function(d,e){for(var i=d.split(h),k=w,q=0,r=i.length;q<
r;q++)k=k.n,!k[i[q]]&&(k[i[q]]={n:{}}),k=k[i[q]];k.f=k.f||[];q=0;for(r=k.f.length;q<r;q++)if(k.f[q]==e)return l;k.f.push(e);return function(d){if(+d==+d)e.zIndex=+d}};D.stop=function(){q=1};D.nt=function(d){if(d)return RegExp("(?:\\.|\\/|^)"+d+"(?:\\.|\\/|$)").test(k);return k};D.off=D.unbind=function(d,e){var i=d.split(h),k,l,q,r,D,x,m=[w];r=0;for(D=i.length;r<D;r++)for(x=0;x<m.length;x+=q.length-2){q=[x,1];k=m[x].n;if(i[r]!="*")k[i[r]]&&q.push(k[i[r]]);else for(l in k)k.hasOwnProperty(l)&&q.push(k[l]);
m.splice.apply(m,q)}r=0;for(D=m.length;r<D;r++)for(k=m[r];k.n;){if(e){if(k.f){x=0;for(i=k.f.length;x<i;x++)if(k.f[x]==e){k.f.splice(x,1);break}!k.f.length&&delete k.f}for(l in k.n)if(k.n.hasOwnProperty(l)&&k.n[l].f){q=k.n[l].f;x=0;for(i=q.length;x<i;x++)if(q[x]==e){q.splice(x,1);break}!q.length&&delete k.n[l].f}}else for(l in delete k.f,k.n)k.n.hasOwnProperty(l)&&k.n[l].f&&delete k.n[l].f;k=k.n}};D.once=function(d,e){var h=function(){var i=e.apply(this,arguments);D.unbind(d,h);return i};return D.on(d,
h)};D.version="0.3.4";D.toString=function(){return"You are running Eve 0.3.4"};typeof module!="undefined"&&module.exports?module.exports=D:typeof define!="undefined"?define("eve",[],function(){return D}):d.eve=D})(i);l=i.eve;(function(){function d(a){if(d.is(a,"function"))return ia?a():l.on("raphael.DOMload",a);else if(d.is(a,pa))return d._engine.create[X](d,a.splice(0,3+d.is(a[0],V))).add(a);else{var b=Array.prototype.slice.call(arguments,0);if(d.is(b[b.length-1],"function")){var c=b.pop();return ia?
c.call(d._engine.create[X](d,b)):l.on("raphael.DOMload",function(){c.call(d._engine.create[X](d,b))})}else return d._engine.create[X](d,arguments)}}function h(a){if(Object(a)!==a)return a;var b=new a.constructor,c;for(c in a)a[m](c)&&(b[c]=h(a[c]));return b}function i(){return this.hex}function e(a,b){for(var c=[],d=0,f=a.length;f-2*!b>d;d+=2){var g=[{x:+a[d-2],y:+a[d-1]},{x:+a[d],y:+a[d+1]},{x:+a[d+2],y:+a[d+3]},{x:+a[d+4],y:+a[d+5]}];b?d?f-4==d?g[3]={x:+a[0],y:+a[1]}:f-2==d&&(g[2]={x:+a[0],y:+a[1]},
g[3]={x:+a[2],y:+a[3]}):g[0]={x:+a[f-2],y:+a[f-1]}:f-4==d?g[3]=g[2]:d||(g[0]={x:+a[d],y:+a[d+1]});c.push(["C",(-g[0].x+6*g[1].x+g[2].x)/6,(-g[0].y+6*g[1].y+g[2].y)/6,(g[1].x+6*g[2].x-g[3].x)/6,(g[1].y+6*g[2].y-g[3].y)/6,g[2].x,g[2].y])}return c}function k(a,b,c,d,g,o,T,e,j){j==null&&(j=1);for(var j=(j>1?1:j<0?0:j)/2,ga=[-0.1252,0.1252,-0.3678,0.3678,-0.5873,0.5873,-0.7699,0.7699,-0.9041,0.9041,-0.9816,0.9816],A=[0.2491,0.2491,0.2335,0.2335,0.2032,0.2032,0.1601,0.1601,0.1069,0.1069,0.0472,0.0472],
J=0,n=0;n<12;n++){var h=j*ga[n]+j,ka=h*(h*(-3*a+9*c-9*g+3*T)+6*a-12*c+6*g)-3*a+3*c,h=h*(h*(-3*b+9*d-9*o+3*e)+6*b-12*d+6*o)-3*b+3*d;J+=A[n]*f.sqrt(ka*ka+h*h)}return j*J}function r(a,b,c,d,f,g,o,T,e){if(!(e<0||k(a,b,c,d,f,g,o,T)<e)){var j=0.5,ga=1-j,A;for(A=k(a,b,c,d,f,g,o,T,ga);S(A-e)>0.01;)j/=2,ga+=(A<e?1:-1)*j,A=k(a,b,c,d,f,g,o,T,ga);return ga}}function w(a,b,c){for(var a=d._path2curve(a),b=d._path2curve(b),f,g,o,T,e,j,ga,A,J,n,h=c?0:[],ka=0,s=a.length;ka<s;ka++)if(J=a[ka],J[0]=="M")f=e=J[1],g=j=
J[2];else{J[0]=="C"?(J=[f,g].concat(J.slice(1)),f=J[6],g=J[7]):(J=[f,g,f,g,e,j,e,j],f=e,g=j);for(var C=0,za=b.length;C<za;C++)if(n=b[C],n[0]=="M")o=ga=n[1],T=A=n[2];else{n[0]=="C"?(n=[o,T].concat(n.slice(1)),o=n[6],T=n[7]):(n=[o,T,o,T,ga,A,ga,A],o=ga,T=A);var Ma;var F=J,i=n;Ma=c;var W=d.bezierBBox(F),Qa=d.bezierBBox(i);if(d.isBBoxIntersect(W,Qa)){for(var W=k.apply(0,F),Qa=k.apply(0,i),W=~~(W/5),Qa=~~(Qa/5),z=[],jb=[],I={},Ya=Ma?0:[],Ta=0;Ta<W+1;Ta++){var l=d.findDotsAtSegment.apply(d,F.concat(Ta/
W));z.push({x:l.x,y:l.y,t:Ta/W})}for(Ta=0;Ta<Qa+1;Ta++)l=d.findDotsAtSegment.apply(d,i.concat(Ta/Qa)),jb.push({x:l.x,y:l.y,t:Ta/Qa});for(Ta=0;Ta<W;Ta++)for(F=0;F<Qa;F++){var Q=z[Ta],da=z[Ta+1],i=jb[F],l=jb[F+1],p=S(da.x-Q.x)<0.0010?"y":"x",ca=S(l.x-i.x)<0.0010?"y":"x",Y;b:{Y=Q.x;var q=Q.y,U=da.x,Xa=da.y,N=i.x,m=i.y,y=l.x,Ga=l.y;if(!(t(Y,U)<u(N,y)||u(Y,U)>t(N,y)||t(q,Xa)<u(m,Ga)||u(q,Xa)>t(m,Ga))){var la=(Y-U)*(m-Ga)-(q-Xa)*(N-y);if(la){var v=((Y*Xa-q*U)*(N-y)-(Y-U)*(N*Ga-m*y))/la,la=((Y*Xa-q*U)*(m-
Ga)-(q-Xa)*(N*Ga-m*y))/la,ua=+v.toFixed(2),db=+la.toFixed(2);if(!(ua<+u(Y,U).toFixed(2)||ua>+t(Y,U).toFixed(2)||ua<+u(N,y).toFixed(2)||ua>+t(N,y).toFixed(2)||db<+u(q,Xa).toFixed(2)||db>+t(q,Xa).toFixed(2)||db<+u(m,Ga).toFixed(2)||db>+t(m,Ga).toFixed(2))){Y={x:v,y:la};break b}}}Y=void 0}Y&&I[Y.x.toFixed(4)]!=Y.y.toFixed(4)&&(I[Y.x.toFixed(4)]=Y.y.toFixed(4),Q=Q.t+S((Y[p]-Q[p])/(da[p]-Q[p]))*(da.t-Q.t),i=i.t+S((Y[ca]-i[ca])/(l[ca]-i[ca]))*(l.t-i.t),Q>=0&&Q<=1&&i>=0&&i<=1&&(Ma?Ya++:Ya.push({x:Y.x,y:Y.y,
t1:Q,t2:i})))}Ma=Ya}else Ma=Ma?0:[];if(c)h+=Ma;else{W=0;for(Qa=Ma.length;W<Qa;W++)Ma[W].segment1=ka,Ma[W].segment2=C,Ma[W].bez1=J,Ma[W].bez2=n;h=h.concat(Ma)}}}return h}function D(a,b,c,d,f,g){a!=null?(this.a=+a,this.b=+b,this.c=+c,this.d=+d,this.e=+f,this.f=+g):(this.a=1,this.c=this.b=0,this.d=1,this.f=this.e=0)}function ba(){return this.x+v+this.y+v+this.width+" \u00d7 "+this.height}function E(a,b,c,d,f,g){function o(a,b){var c,Ba,d,f;d=a;for(Ba=0;Ba<8;Ba++){f=((j*d+e)*d+T)*d-a;if(S(f)<b)return d;
c=(3*j*d+2*e)*d+T;if(S(c)<1.0E-6)break;d-=f/c}c=0;Ba=1;d=a;if(d<c)return c;if(d>Ba)return Ba;for(;c<Ba;){f=((j*d+e)*d+T)*d;if(S(f-a)<b)break;a>f?c=d:Ba=d;d=(Ba-c)/2+c}return d}var T=3*b,e=3*(d-b)-T,j=1-T-e,ga=3*c,A=3*(f-c)-ga,J=1-ga-A;return function(a,b){var c=o(a,b);return((J*c+A)*c+ga)*c}(a,1/(200*g))}function H(a,b){var c=[],d={};this.ms=b;this.times=1;if(a){for(var f in a)a[m](f)&&(d[ja(f)]=a[f],c.push(ja(f)));c.sort(La)}this.anim=d;this.top=c[c.length-1];this.percents=c}function L(a,f,g,o,T,
e){var g=ja(g),j,ga,J,h,t,s,C=a.ms,za={},Ma={},u={};if(o){s=0;for(i=qa.length;s<i;s++){var F=qa[s];if(F.el.id==f.id&&F.anim==a){F.percent!=g?(qa.splice(s,1),J=1):ga=F;f.attr(F.totalOrigin);break}}}else o=+Ma;s=0;for(var i=a.percents.length;s<i;s++)if(a.percents[s]==g||a.percents[s]>o*a.top){g=a.percents[s];t=a.percents[s-1]||0;C=C/a.top*(g-t);h=a.percents[s+1];j=a.anim[g];break}else o&&f.attr(a.anim[a.percents[s]]);if(j){if(ga)ga.initstatus=o,ga.start=new Date-ga.ms*o;else{for(var W in j)if(j[m](W)&&
(Sa[m](W)||f.ca[W]))switch(za[W]=f.attr(W),za[W]==null&&(za[W]=Pa[W]),Ma[W]=j[W],Sa[W]){case V:u[W]=(Ma[W]-za[W])/C;break;case "colour":za[W]=d.getRGB(za[W]);s=d.getRGB(Ma[W]);u[W]={r:(s.r-za[W].r)/C,g:(s.g-za[W].g)/C,b:(s.b-za[W].b)/C};break;case "path":s=A(za[W],Ma[W]);F=s[1];za[W]=s[0];u[W]=[];s=0;for(i=za[W].length;s<i;s++){u[W][s]=[0];for(var Qa=1,k=za[W][s].length;Qa<k;Qa++)u[W][s][Qa]=(F[s][Qa]-za[W][s][Qa])/C}break;case "transform":s=f._;if(i=jb(s[W],Ma[W])){za[W]=i.from;Ma[W]=i.to;u[W]=[];
u[W].real=!0;s=0;for(i=za[W].length;s<i;s++){u[W][s]=[za[W][s][0]];Qa=1;for(k=za[W][s].length;Qa<k;Qa++)u[W][s][Qa]=(Ma[W][s][Qa]-za[W][s][Qa])/C}}else i=f.matrix||new D,s={_:{transform:s.transform},getBBox:function(){return f.getBBox(1)}},za[W]=[i.a,i.b,i.c,i.d,i.e,i.f],ka(s,Ma[W]),Ma[W]=s._.transform,u[W]=[(s.matrix.a-i.a)/C,(s.matrix.b-i.b)/C,(s.matrix.c-i.c)/C,(s.matrix.d-i.d)/C,(s.matrix.e-i.e)/C,(s.matrix.f-i.f)/C];break;case "csv":i=b(j[W])[c](P);F=b(za[W])[c](P);if(W=="clip-rect"){za[W]=F;
u[W]=[];for(s=F.length;s--;)u[W][s]=(i[s]-za[W][s])/C}Ma[W]=i;break;default:i=[][K](j[W]);F=[][K](za[W]);u[W]=[];for(s=f.ca[W].length;s--;)u[W][s]=((i[s]||0)-(F[s]||0))/C}s=j.easing;W=d.easing_formulas[s];if(!W)if((W=b(s).match(Ja))&&W.length==5){var z=W;W=function(a){return E(a,+z[1],+z[2],+z[3],+z[4],C)}}else W=n;s=j.start||a.start||+new Date;F={anim:a,percent:g,timestamp:s,start:s+(a.del||0),status:0,initstatus:o||0,stop:!1,ms:C,easing:W,from:za,diff:u,to:Ma,el:f,callback:j.callback,prev:t,next:h,
repeat:e||a.times,origin:f.attr(),totalOrigin:T};qa.push(F);if(o&&!ga&&!J&&(F.stop=!0,F.start=new Date-C*o,qa.length==1))return Ra();if(J)F.start=new Date-F.ms*o;qa.length==1&&wa(Ra)}l("raphael.anim.start."+f.id,f,a)}}function B(a){for(var b=0;b<qa.length;b++)qa[b].el.paper==a&&qa.splice(b--,1)}q=d;d.version="2.1.0";d.eve=l;var ia,P=/[, ]+/,M={circle:1,rect:1,path:1,ellipse:1,text:1,image:1,group:1},x=/\{(\d+)\}/g,m="hasOwnProperty",p={doc:document,win:window},R=function(){};d.ca=R.prototype;var Z=
{was:Object.prototype[m].call(p.win,"Raphael"),is:p.win.Raphael},O=function(){this.ca=this.customAttributes=new R;this._CustomAttributes=function(){};this._CustomAttributes.prototype=this.ca},X="apply",K="concat",y=d._supportsTouch="createTouch"in p.doc,v=" ",b=String,c="split",j="click dblclick mousedown mousemove mouseout mouseover mouseup touchstart touchmove touchend touchcancel"[c](v),a=d._touchMap={mousedown:"touchstart",mousemove:"touchmove",mouseup:"touchend"},g=b.prototype.toLowerCase,f=
Math,t=f.max,u=f.min,S=f.abs,U=f.pow,Na=f.cos,$=f.sin,Ua=f.sqrt,fa=f.PI,sa=fa/180,V="number",pa="array",xa=Object.prototype.toString;d._ISURL=/^url\(['"]?([^\)]+?)['"]?\)$/i;var ya=/^\s*((#[a-f\d]{6})|(#[a-f\d]{3})|rgba?\(\s*([\d\.]+%?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+%?(?:\s*,\s*[\d\.]+%?)?)\s*\)|hsba?\(\s*([\d\.]+(?:deg|\xb0|%)?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+(?:%?\s*,\s*[\d\.]+)?)%?\s*\)|hsla?\(\s*([\d\.]+(?:deg|\xb0|%)?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+(?:%?\s*,\s*[\d\.]+)?)%?\s*\))\s*$/i,Aa={NaN:1,Infinity:1,
"-Infinity":1},Ja=/^(?:cubic-)?bezier\(([^,]+),([^,]+),([^,]+),([^\)]+)\)/,Va=f.round,ja=parseFloat,Da=parseInt,bb=b.prototype.toUpperCase,Pa=d._availableAttrs={"arrow-end":"none","arrow-start":"none",blur:0,"clip-rect":"0 0 1e9 1e9","clip-path":"",cursor:"default",cx:0,cy:0,fill:"#fff","fill-opacity":1,font:'10px "Arial"',"font-family":'"Arial"',"font-size":"10","font-style":"normal","font-weight":400,gradient:0,height:0,href:"about:blank","letter-spacing":0,"line-height":12,"vertical-align":"middle",
opacity:1,path:"M0,0",r:0,rx:0,ry:0,src:"",stroke:"#000","stroke-dasharray":"","stroke-linecap":"butt","stroke-linejoin":"butt","stroke-miterlimit":0,"stroke-opacity":1,"stroke-width":1,"shape-rendering":"default",target:"_blank","text-anchor":"middle",visibility:"",title:"",transform:"",rotation:0,width:0,x:0,y:0},Sa=d._availableAnimAttrs={blur:V,"clip-rect":"csv","clip-path":"path",cx:V,cy:V,fill:"colour","fill-opacity":V,"font-size":V,height:V,opacity:V,path:"path",r:V,rx:V,ry:V,stroke:"colour",
"stroke-opacity":V,"stroke-width":V,transform:"transform",width:V,x:V,y:V},Ca=/[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*/,$a={hs:1,rg:1},Ia=/,?([achlmqrstvxz]),?/gi,cb=/([achlmrqstvz])[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029,]*((-?\d*\.?\d*(?:e[\-+]?\d+)?[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,?[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*)+)/ig,
ab=/([rstm])[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029,]*((-?\d*\.?\d*(?:e[\-+]?\d+)?[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,?[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*)+)/ig,eb=/(-?\d*\.?\d*(?:e[\-+]?\d+)?)[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,?[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*/ig;
d._radial_gradient=/^x?r(?:\(([^\)]*?)\))?/;var Za={},La=function(a,b){return ja(a)-ja(b)},Ka=function(){},n=function(a){return a},C=d._rectPath=function(a,b,c,d,f){if(f)return[["M",a+f,b],["l",c-f*2,0],["a",f,f,0,0,1,f,f],["l",0,d-f*2],["a",f,f,0,0,1,-f,f],["l",f*2-c,0],["a",f,f,0,0,1,-f,-f],["l",0,f*2-d],["a",f,f,0,0,1,f,-f],["z"]];return[["M",a,b],["l",c,0],["l",0,d],["l",-c,0],["z"]]},F=function(a,b,c,d){d==null&&(d=c);return[["M",a,b],["m",0,-d],["a",c,d,0,1,1,0,2*d],["a",c,d,0,1,1,0,-2*d],["z"]]},
I=d._getPath={group:function(){return!1},path:function(a){return a.attr("path")},circle:function(a){a=a.attrs;return F(a.cx,a.cy,a.r)},ellipse:function(a){a=a.attrs;return F(a.cx,a.cy,a.rx,a.ry)},rect:function(a){a=a.attrs;return C(a.x,a.y,a.width,a.height,a.r)},image:function(a){a=a.attrs;return C(a.x,a.y,a.width,a.height)},text:function(a){a=a._getBBox();return C(a.x,a.y,a.width,a.height)}},Q=d.mapPath=function(a,b){if(!b)return a;var c,d,f,g,o,T,e,a=A(a);f=0;for(o=a.length;f<o;f++){e=a[f];g=1;
for(T=e.length;g<T;g+=2)c=b.x(e[g],e[g+1]),d=b.y(e[g],e[g+1]),e[g]=c,e[g+1]=d}return a};d.pick=function(){var a,b,c;b=0;for(c=arguments.length;b<c;b+=1)if((a=arguments[b])||!(a!==!1&&a!==0))return a};d._g=p;d.type=p.win.ENABLE_RED_CANVAS&&(p.win.CanvasRenderingContext2D||p.doc.createElement("canvas").getContext)?"CANVAS":p.win.SVGAngle||p.doc.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1")?"SVG":"VML";if(d.type=="VML"){var Y=p.doc.createElement("div");Y.innerHTML=
'<v:shape adj="1"/>';Y=Y.firstChild;Y.style.behavior="url(#default#VML)";if(!(Y&&typeof Y.adj=="object"))return d.type="";Y=null}d.svg=!((d.vml=d.type=="VML")||(d.canvas=d.type=="CANVAS"));d._Paper=O;d.fn=O=O.prototype=d.prototype;d._id=0;d._oid=0;d.is=function(a,b){b=g.call(b);if(b=="finite")return!Aa[m](+a);if(b=="array")return a instanceof Array;if(b==="object"&&(a===void 0||a===null))return!1;return b=="null"&&a===null||b==typeof a&&a!==null||b=="object"&&a===Object(a)||b=="array"&&Array.isArray&&
Array.isArray(a)||xa.call(a).slice(8,-1).toLowerCase()==b};d.angle=function(a,b,c,g,o,T){if(o==null){a-=c;b-=g;if(!a&&!b)return 0;return(f.atan2(-b,-a)*180/fa+540)%360}else return d.angle(a,b,o,T)-d.angle(c,g,o,T)};d.rad=function(a){return a%360*sa};d.deg=function(a){return a*180/fa%360};d.snapTo=function(a,b,c){c=d.is(c,"finite")?c:10;if(d.is(a,pa))for(var f=a.length;f--;){if(S(a[f]-b)<=c)return a[f]}else{a=+a;f=b%a;if(f<c)return b-f;if(f>a-c)return b-f+a}return b};d.createUUID=function(a,b){return function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(a,
b).toUpperCase()}}(/[xy]/g,function(a){var b=f.random()*16|0;return(a=="x"?b:b&3|8).toString(16)});d.setWindow=function(a){l("raphael.setWindow",d,p.win,a);p.win=a;p.doc=p.win.document;d._engine.initWin&&d._engine.initWin(p.win)};var N=function(a){if(d.vml){var c=/^\s+|\s+$/g,f;try{var g=new ActiveXObject("htmlfile");g.write("<body>");g.close();f=g.body}catch(o){f=createPopup().document.body}var T=f.createTextRange();N=ca(function(a){try{f.style.color=b(a).replace(c,"");var d=T.queryCommandValue("ForeColor");
return"#"+("000000"+((d&255)<<16|d&65280|(d&16711680)>>>16).toString(16)).slice(-6)}catch(Ba){return"none"}})}else{var e=p.doc.createElement("i");e.title="Rapha\u00ebl Colour Picker";e.style.display="none";p.doc.body.appendChild(e);N=ca(function(a){e.style.color=a;return p.doc.defaultView.getComputedStyle(e,"").getPropertyValue("color")})}return N(a)},z=function(){return"hsb("+[this.h,this.s,this.b]+")"},ua=function(){return"hsl("+[this.h,this.s,this.l]+")"},va=function(){return this.hex},na=function(a,
b,c){if(b==null&&d.is(a,"object")&&"r"in a&&"g"in a&&"b"in a)c=a.b,b=a.g,a=a.r;if(b==null&&d.is(a,"string"))c=d.getRGB(a),a=c.r,b=c.g,c=c.b;if(a>1||b>1||c>1)a/=255,b/=255,c/=255;return[a,b,c]},ea=function(a,b,c,f){a*=255;b*=255;c*=255;a={r:a,g:b,b:c,hex:d.rgb(a,b,c),toString:va};d.is(f,"finite")&&(a.opacity=f);return a};d.color=function(a){var b;d.is(a,"object")&&"h"in a&&"s"in a&&"b"in a?(b=d.hsb2rgb(a),a.r=b.r,a.g=b.g,a.b=b.b,a.hex=b.hex):d.is(a,"object")&&"h"in a&&"s"in a&&"l"in a?(b=d.hsl2rgb(a),
a.r=b.r,a.g=b.g,a.b=b.b,a.hex=b.hex):(d.is(a,"string")&&(a=d.getRGB(a)),d.is(a,"object")&&"r"in a&&"g"in a&&"b"in a?(b=d.rgb2hsl(a),a.h=b.h,a.s=b.s,a.l=b.l,b=d.rgb2hsb(a),a.v=b.b):(a={hex:"none"},a.r=a.g=a.b=a.h=a.s=a.v=a.l=-1));a.toString=va;return a};d.hsb2rgb=function(a,b,c,d){if(this.is(a,"object")&&"h"in a&&"s"in a&&"b"in a)c=a.b,b=a.s,a=a.h,d=a.o;a*=360;var f,g,o,a=a%360/60;o=c*b;b=o*(1-S(a%2-1));c=f=g=c-o;a=~~a;c+=[o,b,0,0,b,o][a];f+=[b,o,o,b,0,0][a];g+=[0,0,b,o,o,b][a];return ea(c,f,g,d)};
d.hsl2rgb=function(a,b,c,d){if(this.is(a,"object")&&"h"in a&&"s"in a&&"l"in a)c=a.l,b=a.s,a=a.h;if(a>1||b>1||c>1)a/=360,b/=100,c/=100;a*=360;var f,g,o,a=a%360/60;o=2*b*(c<0.5?c:1-c);b=o*(1-S(a%2-1));c=f=g=c-o/2;a=~~a;c+=[o,b,0,0,b,o][a];f+=[b,o,o,b,0,0][a];g+=[0,0,b,o,o,b][a];return ea(c,f,g,d)};d.rgb2hsb=function(a,b,c){var c=na(a,b,c),a=c[0],b=c[1],c=c[2],d,f;d=t(a,b,c);f=d-u(a,b,c);return{h:((f==0?0:d==a?(b-c)/f:d==b?(c-a)/f+2:(a-b)/f+4)+360)%6*60/360,s:f==0?0:f/d,b:d,toString:z}};d.rgb2hsl=function(a,
b,c){var c=na(a,b,c),a=c[0],b=c[1],c=c[2],d,f,g;f=t(a,b,c);d=u(a,b,c);g=f-d;d=(f+d)/2;return{h:((g==0?0:f==a?(b-c)/g:f==b?(c-a)/g+2:(a-b)/g+4)+360)%6*60/360,s:g==0?0:d<0.5?g/(2*d):g/(2-2*d),l:d,toString:ua}};d._path2string=function(){return this.join(",").replace(Ia,"$1")};var ca=d._cacher=function(a,b,c){function d(){var f=Array.prototype.slice.call(arguments,0),g=f.join("\u2400"),o=d.cache=d.cache||{},T=d.count=d.count||[];if(o[m](g)){a:for(var f=T,T=g,e=0,j=f.length;e<j;e++)if(f[e]===T){f.push(f.splice(e,
1)[0]);break a}return c?c(o[g]):o[g]}T.length>=1E3&&delete o[T.shift()];T.push(g);o[g]=a[X](b,f);return c?c(o[g]):o[g]}return d};d._preload=function(a,b){var c=p.doc.createElement("img");c.style.cssText="position:absolute;left:-9999em;top:-9999em";c.onload=function(){b.call(this);this.onload=null;p.doc.body.removeChild(this)};c.onerror=function(){p.doc.body.removeChild(this)};p.doc.body.appendChild(c);c.src=a};d.getRGB=ca(function(a){var f;a&&d.is(a,"object")&&"opacity"in a&&(f=a.opacity);if(!a||
(a=b(a)).indexOf("-")+1)return{r:-1,g:-1,b:-1,hex:"none",error:1,toString:i};if(a=="none")return{r:-1,g:-1,b:-1,hex:"none",toString:i};!($a[m](a.toLowerCase().substring(0,2))||a.charAt()=="#")&&(a=N(a));var g,o,T,e;if(a=a.match(ya)){a[2]&&(T=Da(a[2].substring(5),16),o=Da(a[2].substring(3,5),16),g=Da(a[2].substring(1,3),16));a[3]&&(T=Da((e=a[3].charAt(3))+e,16),o=Da((e=a[3].charAt(2))+e,16),g=Da((e=a[3].charAt(1))+e,16));a[4]&&(e=a[4][c](Ca),g=ja(e[0]),e[0].slice(-1)=="%"&&(g*=2.55),o=ja(e[1]),e[1].slice(-1)==
"%"&&(o*=2.55),T=ja(e[2]),e[2].slice(-1)=="%"&&(T*=2.55),a[1].toLowerCase().slice(0,4)=="rgba"&&(f=ja(e[3])),e[3]&&e[3].slice(-1)=="%"&&(f/=100));if(a[5])return e=a[5][c](Ca),g=ja(e[0]),e[0].slice(-1)=="%"&&(g*=2.55),o=ja(e[1]),e[1].slice(-1)=="%"&&(o*=2.55),T=ja(e[2]),e[2].slice(-1)=="%"&&(T*=2.55),(e[0].slice(-3)=="deg"||e[0].slice(-1)=="\u00b0")&&(g/=360),a[1].toLowerCase().slice(0,4)=="hsba"&&(f=ja(e[3])),e[3]&&e[3].slice(-1)=="%"&&(f/=100),d.hsb2rgb(g,o,T,f);if(a[6])return e=a[6][c](Ca),g=ja(e[0]),
e[0].slice(-1)=="%"&&(g*=2.55),o=ja(e[1]),e[1].slice(-1)=="%"&&(o*=2.55),T=ja(e[2]),e[2].slice(-1)=="%"&&(T*=2.55),(e[0].slice(-3)=="deg"||e[0].slice(-1)=="\u00b0")&&(g/=360),a[1].toLowerCase().slice(0,4)=="hsla"&&(f=ja(e[3])),e[3]&&e[3].slice(-1)=="%"&&(f/=100),d.hsl2rgb(g,o,T,f);a={r:g,g:o,b:T,toString:i};a.hex="#"+(16777216|T|o<<8|g<<16).toString(16).slice(1);d.is(f,"finite")&&(a.opacity=f);return a}return{r:-1,g:-1,b:-1,hex:"none",error:1,toString:i}},d);d.tintshade=ca(function(a,b){var c=d.getRGB(a),
f;f=255;b<0&&(b*=-1,f=0);b>1&&(b=1);f=b===0?c:{r:f-(f-c.r)*b,g:f-(f-c.g)*b,b:f-(f-c.b)*b,toString:i};f.hex=d.rgb(f.r,f.g,f.b);c.error&&(f.error=c.error);"opacity"in c?(f.rgba="rgba("+[f.r,f.g,f.b,c.opacity].join(",")+")",f.opacity=c.opacity):f.rgba="rgb("+[f.r,f.g,f.b].join(",")+")";return f},d);d.hsb=ca(function(a,b,c){return d.hsb2rgb(a,b,c).hex});d.hsl=ca(function(a,b,c){return d.hsl2rgb(a,b,c).hex});d.rgb=ca(function(a,b,c){return"#"+(16777216|c|b<<8|a<<16).toString(16).slice(1)});d.getColor=
function(a){var a=this.getColor.start=this.getColor.start||{h:0,s:1,b:a||0.75},b=this.hsb2rgb(a.h,a.s,a.b);a.h+=0.075;if(a.h>1)a.h=0,a.s-=0.2,a.s<=0&&(this.getColor.start={h:0,s:1,b:a.b});return b.hex};d.getColor.reset=function(){delete this.start};d.parsePathString=function(a){if(!a)return null;var c=ra(a);if(c.arr)return oa(c.arr);var f={a:7,c:6,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,z:0},g=[];d.is(a,pa)&&d.is(a[0],pa)&&(g=oa(a));g.length||b(a).replace(cb,function(a,b,c){var d=[],a=b.toLowerCase();c.replace(eb,
function(a,b){b&&d.push(+b)});a=="m"&&d.length>2&&(g.push([b][K](d.splice(0,2))),a="l",b=b=="m"?"l":"L");if(a=="r")g.push([b][K](d));else for(;d.length>=f[a];)if(g.push([b][K](d.splice(0,f[a]))),!f[a])break});g.toString=d._path2string;c.arr=oa(g);return g};d.parseTransformString=ca(function(a){if(!a)return null;var c=[];d.is(a,pa)&&d.is(a[0],pa)&&(c=oa(a));c.length||b(a).replace(ab,function(a,b,f){var d=[];g.call(b);f.replace(eb,function(a,b){b&&d.push(+b)});c.push([b][K](d))});c.toString=d._path2string;
return c});var ra=function(a){var b=ra.ps=ra.ps||{};b[a]?b[a].sleep=100:b[a]={sleep:100};setTimeout(function(){for(var c in b)b[m](c)&&c!=a&&(b[c].sleep--,!b[c].sleep&&delete b[c])});return b[a]};d.findDotsAtSegment=function(a,b,c,d,g,o,e,T,j){var ga=1-j,A=U(ga,3),J=U(ga,2),n=j*j,h=n*j,s=A*a+J*3*j*c+ga*3*j*j*g+h*e,A=A*b+J*3*j*d+ga*3*j*j*o+h*T,J=a+2*j*(c-a)+n*(g-2*c+a),h=b+2*j*(d-b)+n*(o-2*d+b),ka=c+2*j*(g-c)+n*(e-2*g+c),n=d+2*j*(o-d)+n*(T-2*o+d),a=ga*a+j*c,b=ga*b+j*d,g=ga*g+j*e,o=ga*o+j*T,T=90-f.atan2(J-
ka,h-n)*180/fa;(J>ka||h<n)&&(T+=180);return{x:s,y:A,m:{x:J,y:h},n:{x:ka,y:n},start:{x:a,y:b},end:{x:g,y:o},alpha:T}};d.bezierBBox=function(a,b,c,f,g,o,e,T){d.is(a,"array")||(a=[a,b,c,f,g,o,e,T]);a=ga.apply(null,a);return{x:a.min.x,y:a.min.y,x2:a.max.x,y2:a.max.y,width:a.max.x-a.min.x,height:a.max.y-a.min.y}};d.isPointInsideBBox=function(a,b,c){return b>=a.x&&b<=a.x2&&c>=a.y&&c<=a.y2};d.isBBoxIntersect=function(a,b){var c=d.isPointInsideBBox;return c(b,a.x,a.y)||c(b,a.x2,a.y)||c(b,a.x,a.y2)||c(b,a.x2,
a.y2)||c(a,b.x,b.y)||c(a,b.x2,b.y)||c(a,b.x,b.y2)||c(a,b.x2,b.y2)||(a.x<b.x2&&a.x>b.x||b.x<a.x2&&b.x>a.x)&&(a.y<b.y2&&a.y>b.y||b.y<a.y2&&b.y>a.y)};d.pathIntersection=function(a,b){return w(a,b)};d.pathIntersectionNumber=function(a,b){return w(a,b,1)};d.isPointInsidePath=function(a,b,c){var f=d.pathBBox(a);return d.isPointInsideBBox(f,b,c)&&w(a,[["M",b,c],["H",f.x2+10]],1)%2==1};d._removedFactory=function(a){return function(){l("raphael.log",null,"Rapha\u00ebl: you are calling to method \u201c"+a+
"\u201d of removed object",a)}};var ta=d.pathBBox=function(a){var b=ra(a);if(b.bbox)return b.bbox;if(!a)return{x:0,y:0,width:0,height:0,x2:0,y2:0};for(var a=A(a),c=0,f=0,d=[],g=[],o,e=0,T=a.length;e<T;e++)o=a[e],o[0]=="M"?(c=o[1],f=o[2],d.push(c),g.push(f)):(c=ga(c,f,o[1],o[2],o[3],o[4],o[5],o[6]),d=d[K](c.min.x,c.max.x),g=g[K](c.min.y,c.max.y),c=o[5],f=o[6]);a=u[X](0,d);o=u[X](0,g);d=t[X](0,d);g=t[X](0,g);g={x:a,y:o,x2:d,y2:g,width:d-a,height:g-o};b.bbox=h(g);return g},oa=function(a){a=h(a);a.toString=
d._path2string;return a},Y=d._pathToRelative=function(a){var b=ra(a);if(b.rel)return oa(b.rel);if(!d.is(a,pa)||!d.is(a&&a[0],pa))a=d.parsePathString(a);var c=[],f=0,o=0,e=0,T=0,j=0;a[0][0]=="M"&&(f=a[0][1],o=a[0][2],e=f,T=o,j++,c.push(["M",f,o]));for(var ga=a.length;j<ga;j++){var A=c[j]=[],J=a[j];if(J[0]!=g.call(J[0]))switch(A[0]=g.call(J[0]),A[0]){case "a":A[1]=J[1];A[2]=J[2];A[3]=J[3];A[4]=J[4];A[5]=J[5];A[6]=+(J[6]-f).toFixed(3);A[7]=+(J[7]-o).toFixed(3);break;case "v":A[1]=+(J[1]-o).toFixed(3);
break;case "m":e=J[1],T=J[2];default:for(var n=1,h=J.length;n<h;n++)A[n]=+(J[n]-(n%2?f:o)).toFixed(3)}else{c[j]=[];J[0]=="m"&&(e=J[1]+f,T=J[2]+o);A=0;for(n=J.length;A<n;A++)c[j][A]=J[A]}J=c[j].length;switch(c[j][0]){case "z":f=e;o=T;break;case "h":f+=+c[j][J-1];break;case "v":o+=+c[j][J-1];break;default:f+=+c[j][J-2],o+=+c[j][J-1]}}c.toString=d._path2string;b.rel=oa(c);return c},G=d._pathToAbsolute=function(a){var b=ra(a),c;if(b.abs)return oa(b.abs);if(!d.is(a,pa)||!d.is(a&&a[0],pa))a=d.parsePathString(a);
if(!a||!a.length)return c=["M",0,0],c.toString=d._path2string,c;var f=0,g=0,o=0,T=0,j=0;c=[];a[0][0]=="M"&&(f=+a[0][1],g=+a[0][2],o=f,T=g,j++,c[0]=["M",f,g]);for(var ga=a.length==3&&a[0][0]=="M"&&a[1][0].toUpperCase()=="R"&&a[2][0].toUpperCase()=="Z",A,J=j,n=a.length;J<n;J++){c.push(j=[]);A=a[J];if(A[0]!=bb.call(A[0]))switch(j[0]=bb.call(A[0]),j[0]){case "A":j[1]=A[1];j[2]=A[2];j[3]=A[3];j[4]=A[4];j[5]=A[5];j[6]=+(A[6]+f);j[7]=+(A[7]+g);break;case "V":j[1]=+A[1]+g;break;case "H":j[1]=+A[1]+f;break;
case "R":for(var h=[f,g][K](A.slice(1)),s=2,ka=h.length;s<ka;s++)h[s]=+h[s]+f,h[++s]=+h[s]+g;c.pop();c=c[K](e(h,ga));break;case "M":o=+A[1]+f,T=+A[2]+g;default:s=1;for(ka=A.length;s<ka;s++)j[s]=+A[s]+(s%2?f:g)}else if(A[0]=="R")h=[f,g][K](A.slice(1)),c.pop(),c=c[K](e(h,ga)),j=["R"][K](A.slice(-2));else{h=0;for(s=A.length;h<s;h++)j[h]=A[h]}switch(j[0]){case "Z":f=o;g=T;break;case "H":f=j[1];break;case "V":g=j[1];break;case "M":o=j[j.length-2],T=j[j.length-1];default:f=j[j.length-2],g=j[j.length-1]}}c.toString=
d._path2string;b.abs=oa(c);return c},Wa=function(a,b,c,f,d,g){var o=1/3,e=2/3;return[o*a+e*c,o*b+e*f,o*d+e*c,o*g+e*f,d,g]},Oa=function(a,b,d,g,o,e,T,j,A,ga){var J=fa*120/180,n=sa*(+o||0),h=[],s,ka=ca(function(a,b,c){var f=a*Na(c)-b*$(c),a=a*$(c)+b*Na(c);return{x:f,y:a}});if(ga)za=ga[0],s=ga[1],e=ga[2],t=ga[3];else{s=ka(a,b,-n);a=s.x;b=s.y;s=ka(j,A,-n);j=s.x;A=s.y;Na(sa*o);$(sa*o);s=(a-j)/2;za=(b-A)/2;t=s*s/(d*d)+za*za/(g*g);t>1&&(t=Ua(t),d*=t,g*=t);var t=d*d,C=g*g,t=(e==T?-1:1)*Ua(S((t*C-t*za*za-
C*s*s)/(t*za*za+C*s*s))),e=t*d*za/g+(a+j)/2,t=t*-g*s/d+(b+A)/2,za=f.asin(((b-t)/g).toFixed(9));s=f.asin(((A-t)/g).toFixed(9));za=a<e?fa-za:za;s=j<e?fa-s:s;za<0&&(za=fa*2+za);s<0&&(s=fa*2+s);T&&za>s&&(za-=fa*2);!T&&s>za&&(s-=fa*2)}if(S(s-za)>J){var h=s,C=j,W=A;s=za+J*(T&&s>za?1:-1);j=e+d*Na(s);A=t+g*$(s);h=Oa(j,A,d,g,o,0,T,C,W,[s,h,e,t])}e=s-za;o=Na(za);J=$(za);T=Na(s);s=$(s);e=f.tan(e/4);d=4/3*d*e;e*=4/3*g;g=[a,b];a=[a+d*J,b-e*o];b=[j+d*s,A-e*T];j=[j,A];a[0]=2*g[0]-a[0];a[1]=2*g[1]-a[1];if(ga)return[a,
b,j][K](h);else{h=[a,b,j][K](h).join()[c](",");ga=[];j=0;for(A=h.length;j<A;j++)ga[j]=j%2?ka(h[j-1],h[j],n).y:ka(h[j],h[j+1],n).x;return ga}},T=function(a,b,c,f,d,g,o,e,j){var T=1-j;return{x:U(T,3)*a+U(T,2)*3*j*c+T*3*j*j*d+U(j,3)*o,y:U(T,3)*b+U(T,2)*3*j*f+T*3*j*j*g+U(j,3)*e}},ga=ca(function(a,b,c,d,g,o,e,j){var A=g-2*c+a-(e-2*g+c),ga=2*(c-a)-2*(g-c),J=a-c,n=(-ga+f.sqrt(ga*ga-4*A*J))/2/A,A=(-ga-f.sqrt(ga*ga-4*A*J))/2/A,s=[b,j],h=[a,e];S(n)>"1e12"&&(n=0.5);S(A)>"1e12"&&(A=0.5);n>0&&n<1&&(n=T(a,b,c,
d,g,o,e,j,n),h.push(n.x),s.push(n.y));A>0&&A<1&&(n=T(a,b,c,d,g,o,e,j,A),h.push(n.x),s.push(n.y));A=o-2*d+b-(j-2*o+d);ga=2*(d-b)-2*(o-d);J=b-d;n=(-ga+f.sqrt(ga*ga-4*A*J))/2/A;A=(-ga-f.sqrt(ga*ga-4*A*J))/2/A;S(n)>"1e12"&&(n=0.5);S(A)>"1e12"&&(A=0.5);n>0&&n<1&&(n=T(a,b,c,d,g,o,e,j,n),h.push(n.x),s.push(n.y));A>0&&A<1&&(n=T(a,b,c,d,g,o,e,j,A),h.push(n.x),s.push(n.y));return{min:{x:u[X](0,h),y:u[X](0,s)},max:{x:t[X](0,h),y:t[X](0,s)}}}),A=d._path2curve=ca(function(a,b){var c=!b&&ra(a);if(!b&&c.curve)return oa(c.curve);
var f=G(a),d=b&&G(b),g={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},o={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},e=function(a,b){var c,f;if(!a)return["C",b.x,b.y,b.x,b.y,b.x,b.y];!(a[0]in{T:1,Q:1})&&(b.qx=b.qy=null);switch(a[0]){case "M":b.X=a[1];b.Y=a[2];break;case "A":a=["C"][K](Oa[X](0,[b.x,b.y][K](a.slice(1))));break;case "S":c=b.x+(b.x-(b.bx||b.x));f=b.y+(b.y-(b.by||b.y));a=["C",c,f][K](a.slice(1));break;case "T":b.qx=b.x+(b.x-(b.qx||b.x));b.qy=b.y+(b.y-(b.qy||b.y));a=["C"][K](Wa(b.x,b.y,b.qx,
b.qy,a[1],a[2]));break;case "Q":b.qx=a[1];b.qy=a[2];a=["C"][K](Wa(b.x,b.y,a[1],a[2],a[3],a[4]));break;case "L":a=["C"][K]([b.x,b.y,a[1],a[2],a[1],a[2]]);break;case "H":a=["C"][K]([b.x,b.y,a[1],b.y,a[1],b.y]);break;case "V":a=["C"][K]([b.x,b.y,b.x,a[1],b.x,a[1]]);break;case "Z":a=["C"][K]([b.x,b.y,b.X,b.Y,b.X,b.Y])}return a},j=function(a,b){if(a[b].length>7){a[b].shift();for(var c=a[b];c.length;)a.splice(b++,0,["C"][K](c.splice(0,6)));a.splice(b,1);ga=t(f.length,d&&d.length||0)}},T=function(a,b,c,
g,o){if(a&&b&&a[o][0]=="M"&&b[o][0]!="M")b.splice(o,0,["M",g.x,g.y]),c.bx=0,c.by=0,c.x=a[o][1],c.y=a[o][2],ga=t(f.length,d&&d.length||0)},A=0,ga=t(f.length,d&&d.length||0);for(;A<ga;A++){f[A]=e(f[A],g);j(f,A);d&&(d[A]=e(d[A],o));d&&j(d,A);T(f,d,g,o,A);T(d,f,o,g,A);var J=f[A],n=d&&d[A],s=J.length,h=d&&n.length;g.x=J[s-2];g.y=J[s-1];g.bx=ja(J[s-4])||g.x;g.by=ja(J[s-3])||g.y;o.bx=d&&(ja(n[h-4])||o.x);o.by=d&&(ja(n[h-3])||o.y);o.x=d&&n[h-2];o.y=d&&n[h-1]}if(!d)c.curve=oa(f);return d?[f,d]:f},null,oa);
d._parseDots=ca(function(a){for(var b=[],c=0,f=a.length;c<f;c++){var g={},o=a[c].match(/^([^:]*):?([\d\.]*)/);g.color=d.getRGB(o[1]);if(g.color.error)return null;g.opacity=g.color.opacity;g.color=g.color.hex;o[2]&&(g.offset=o[2]+"%");b.push(g)}c=1;for(f=b.length-1;c<f;c++)if(!b[c].offset){a=ja(b[c-1].offset||0);o=0;for(g=c+1;g<f;g++)if(b[g].offset){o=b[g].offset;break}o||(o=100,g=f);o=ja(o);for(o=(o-a)/(g-c+1);c<g;c++)a+=o,b[c].offset=a+"%"}return b});var J=d._tear=function(a,b){a==b.top&&(b.top=
a.prev);a==b.bottom&&(b.bottom=a.next);a.next&&(a.next.prev=a.prev);a.prev&&(a.prev.next=a.next)};d._tofront=function(a,b){if(b.top===a)return!1;J(a,b);a.next=null;a.prev=b.top;b.top.next=a;b.top=a;return!0};d._toback=function(a,b){if(b.bottom===a)return!1;J(a,b);a.next=b.bottom;a.prev=null;b.bottom.prev=a;b.bottom=a;return!0};d._insertafter=function(a,b,c,f){J(a,c);a.parent=f;b===f.top&&(f.top=a);b.next&&(b.next.prev=a);a.next=b.next;a.prev=b;b.next=a};d._insertbefore=function(a,b,c,f){J(a,c);a.parent=
f;b===f.bottom&&(f.bottom=a);b.prev&&(b.prev.next=a);a.prev=b.prev;b.prev=a;a.next=b};var o=d.toMatrix=function(a,b){var c=ta(a),f={_:{transform:""},getBBox:function(){return c}};ka(f,b);return f.matrix};d.transformPath=function(a,b){return Q(a,o(a,b))};var ka=d._extractTransform=function(a,c){if(c==null)return a._.transform;var c=b(c).replace(/\.{3}|\u2026/g,a._.transform||""),f=d.parseTransformString(c),g=0,o=0,e=0,j=1,T=1,A=a._,e=new D;A.transform=f||[];if(f)for(var o=0,ga=f.length;o<ga;o++){var J=
f[o],n=J.length,s=b(J[0]).toLowerCase(),h=J[0]!=s,ka=h?e.invert():0,t;s=="t"&&n==3?h?(n=ka.x(0,0),s=ka.y(0,0),h=ka.x(J[1],J[2]),ka=ka.y(J[1],J[2]),e.translate(h-n,ka-s)):e.translate(J[1],J[2]):s=="r"?n==2?(t=t||a.getBBox(1),e.rotate(J[1],t.x+t.width/2,t.y+t.height/2),g+=J[1]):n==4&&(h?(h=ka.x(J[2],J[3]),ka=ka.y(J[2],J[3]),e.rotate(J[1],h,ka)):e.rotate(J[1],J[2],J[3]),g+=J[1]):s=="s"?n==2||n==3?(t=t||a.getBBox(1),e.scale(J[1],J[n-1],t.x+t.width/2,t.y+t.height/2),j*=J[1],T*=J[n-1]):n==5&&(h?(h=ka.x(J[3],
J[4]),ka=ka.y(J[3],J[4]),e.scale(J[1],J[2],h,ka)):e.scale(J[1],J[2],J[3],J[4]),j*=J[1],T*=J[2]):s=="m"&&n==7&&e.add(J[1],J[2],J[3],J[4],J[5],J[6]);A.dirtyT=1;a.matrix=e}a.matrix=e;A.sx=j;A.sy=T;A.deg=g;A.dx=o=e.e;A.dy=e=e.f;j==1&&T==1&&!g&&A.bbox?(A.bbox.x+=+o,A.bbox.y+=+e):A.dirtyT=1},Ma=function(a){var b=a[0];switch(b.toLowerCase()){case "t":return[b,0,0];case "m":return[b,1,0,0,1,0,0];case "r":return a.length==4?[b,0,a[2],a[3]]:[b,0];case "s":return a.length==5?[b,1,1,a[3],a[4]]:a.length==3?[b,
1,1]:[b,1]}},jb=d._equaliseTransform=function(a,c){for(var c=b(c).replace(/\.{3}|\u2026/g,a),a=d.parseTransformString(a)||[],c=d.parseTransformString(c)||[],f=t(a.length,c.length),g=[],o=[],e=0,j,T,A,ga;e<f;e++){A=a[e]||Ma(c[e]);ga=c[e]||Ma(A);if(A[0]!=ga[0]||A[0].toLowerCase()=="r"&&(A[2]!=ga[2]||A[3]!=ga[3])||A[0].toLowerCase()=="s"&&(A[3]!=ga[3]||A[4]!=ga[4]))return;g[e]=[];o[e]=[];j=0;for(T=t(A.length,ga.length);j<T;j++)j in A&&(g[e][j]=A[j]),j in ga&&(o[e][j]=ga[j])}return{from:g,to:o}};d._getContainer=
function(a,b,c,f){var g;g=f==null&&!d.is(a,"object")?p.doc.getElementById(a):a;if(g!=null){if(g.tagName)return b==null?{container:g,width:g.style.pixelWidth||g.offsetWidth,height:g.style.pixelHeight||g.offsetHeight}:{container:g,width:b,height:c};return{container:1,x:a,y:b,width:c,height:f}}};d.pathToRelative=Y;d._engine={};d.path2curve=A;d.matrix=function(a,b,c,f,d,g){return new D(a,b,c,f,d,g)};(function(a){function g(a){return a[0]*a[0]+a[1]*a[1]}function o(a){var b=f.sqrt(g(a));a[0]&&(a[0]/=b);
a[1]&&(a[1]/=b)}a.add=function(a,b,c,f,d,g){var o=[[],[],[]],e=[[this.a,this.c,this.e],[this.b,this.d,this.f],[0,0,1]],b=[[a,c,d],[b,f,g],[0,0,1]];a&&a instanceof D&&(b=[[a.a,a.c,a.e],[a.b,a.d,a.f],[0,0,1]]);for(a=0;a<3;a++)for(c=0;c<3;c++){for(f=d=0;f<3;f++)d+=e[a][f]*b[f][c];o[a][c]=d}this.a=o[0][0];this.b=o[1][0];this.c=o[0][1];this.d=o[1][1];this.e=o[0][2];this.f=o[1][2]};a.invert=function(){var a=this.a*this.d-this.b*this.c;return new D(this.d/a,-this.b/a,-this.c/a,this.a/a,(this.c*this.f-this.d*
this.e)/a,(this.b*this.e-this.a*this.f)/a)};a.clone=function(){return new D(this.a,this.b,this.c,this.d,this.e,this.f)};a.translate=function(a,b){this.add(1,0,0,1,a,b)};a.scale=function(a,b,c,f){b==null&&(b=a);(c||f)&&this.add(1,0,0,1,c,f);this.add(a,0,0,b,0,0);(c||f)&&this.add(1,0,0,1,-c,-f)};a.rotate=function(a,b,c){var a=d.rad(a),b=b||0,c=c||0,g=+f.cos(a).toFixed(9),a=+f.sin(a).toFixed(9);this.add(g,a,-a,g,b,c);this.add(1,0,0,1,-b,-c)};a.x=function(a,b){return a*this.a+b*this.c+this.e};a.y=function(a,
b){return a*this.b+b*this.d+this.f};a.get=function(a){return+this[b.fromCharCode(97+a)].toFixed(4)};a.toString=function(){return d.svg?"matrix("+[this.get(0),this.get(1),this.get(2),this.get(3),this.get(4),this.get(5)].join()+")":[this.get(0),this.get(2),this.get(1),this.get(3),0,0].join()};a.toMatrixString=function(){return"matrix("+[this.get(0),this.get(1),this.get(2),this.get(3),this.get(4),this.get(5)].join()+")"};a.toFilter=function(){return"progid:DXImageTransform.Microsoft.Matrix(M11="+this.get(0)+
", M12="+this.get(2)+", M21="+this.get(1)+", M22="+this.get(3)+", Dx="+this.get(4)+", Dy="+this.get(5)+", sizingmethod='auto expand')"};a.offset=function(){return[this.e.toFixed(4),this.f.toFixed(4)]};a.split=function(){var a={};a.dx=this.e;a.dy=this.f;var b=[[this.a,this.c],[this.b,this.d]];a.scalex=f.sqrt(g(b[0]));o(b[0]);a.shear=b[0][0]*b[1][0]+b[0][1]*b[1][1];b[1]=[b[1][0]-b[0][0]*a.shear,b[1][1]-b[0][1]*a.shear];a.scaley=f.sqrt(g(b[1]));o(b[1]);a.shear/=a.scaley;var c=-b[0][1],b=b[1][1];if(b<
0){if(a.rotate=d.deg(f.acos(b)),c<0)a.rotate=360-a.rotate}else a.rotate=d.deg(f.asin(c));a.isSimple=!+a.shear.toFixed(9)&&(a.scalex.toFixed(9)==a.scaley.toFixed(9)||!a.rotate);a.isSuperSimple=!+a.shear.toFixed(9)&&a.scalex.toFixed(9)==a.scaley.toFixed(9)&&!a.rotate;a.noRotation=!+a.shear.toFixed(9)&&!a.rotate;return a};a.toTransformString=function(a){a=a||this[c]();return a.isSimple?(a.scalex=+a.scalex.toFixed(4),a.scaley=+a.scaley.toFixed(4),a.rotate=+a.rotate.toFixed(4),(a.dx||a.dy?"t"+[a.dx,a.dy]:
"")+(a.scalex!=1||a.scaley!=1?"s"+[a.scalex,a.scaley,0,0]:"")+(a.rotate?"r"+[a.rotate,0,0]:"")):"m"+[this.get(0),this.get(1),this.get(2),this.get(3),this.get(4),this.get(5)]}})(D.prototype);Y=navigator.userAgent.match(/Version\/(.*?)\s/)||navigator.userAgent.match(/Chrome\/(\d+)/);O.safari=navigator.vendor=="Apple Computer, Inc."&&(Y&&Y[1]<4||navigator.platform.slice(0,2)=="iP")||navigator.vendor=="Google Inc."&&Y&&Y[1]<8?function(){var a=this.rect(-99,-99,this.width+99,this.height+99).attr({stroke:"none"});
setTimeout(function(){a.remove()});return!0}:Ka;for(var za=function(){this.returnValue=!1},W=function(){return this.originalEvent.preventDefault()},s=function(){this.cancelBubble=!0},Qa=function(){return this.originalEvent.stopPropagation()},Xa=d.addEvent=function(){if(p.doc.addEventListener)return function(b,c,f,d){var g=y&&a[c]?a[c]:c,o=function(g){var o=p.doc.documentElement.scrollTop||p.doc.body.scrollTop,e=p.doc.documentElement.scrollLeft||p.doc.body.scrollLeft;if(y&&a[m](c))for(var j=0,T=g.targetTouches&&
g.targetTouches.length;j<T;j++)if(g.targetTouches[j].target==b){T=g;g=g.targetTouches[j];g.originalEvent=T;g.preventDefault=W;g.stopPropagation=Qa;break}return f.call(d,g,g.clientX+e,g.clientY+o)};b.addEventListener(g,o,!1);return function(){b.removeEventListener(g,o,!1);return!0}};else if(p.doc.attachEvent)return function(a,b,c,f){var d=function(a){var a=a||p.win.event,b=a.clientX+(p.doc.documentElement.scrollLeft||p.doc.body.scrollLeft),d=a.clientY+(p.doc.documentElement.scrollTop||p.doc.body.scrollTop);
a.preventDefault=a.preventDefault||za;a.stopPropagation=a.stopPropagation||s;return c.call(f,a,b,d)};a.attachEvent("on"+b,d);return function(){a.detachEvent("on"+b,d);return!0}}}(),Ya=[],Ta=function(a){for(var b=a.clientX,c=a.clientY,f=p.doc.documentElement.scrollTop||p.doc.body.scrollTop,d=p.doc.documentElement.scrollLeft||p.doc.body.scrollLeft,g,o=Ya.length;o--;){g=Ya[o];if(y)for(var e=a.touches.length,j;e--;){if(j=a.touches[e],j.identifier==g.el._drag.id){b=j.clientX;c=j.clientY;(a.originalEvent?
a.originalEvent:a).preventDefault();break}}else a.preventDefault();var e=g.el.node,T=e.nextSibling,A=e.parentNode,ga=e.style.display;p.win.opera&&A.removeChild(e);e.style.display="none";j=g.el.paper.getElementByPoint(b,c);e.style.display=ga;p.win.opera&&(T?A.insertBefore(e,T):A.appendChild(e));j&&l("raphael.drag.over."+g.el.id,g.el,j);b+=d;c+=f;l("raphael.drag.move."+g.el.id,g.move_scope||g.el,b-g.el._drag.x,c-g.el._drag.y,b,c,a)}},db=function(a){d.unmousemove(Ta).unmouseup(db);for(var b=Ya.length,
c;b--;)c=Ya[b],c.el._drag={},l("raphael.drag.end."+c.el.id,c.end_scope||c.start_scope||c.move_scope||c.el,a);Ya=[]},da=d.el={},Ka=j.length;Ka--;)(function(a){d[a]=da[a]=function(b,c){if(d.is(b,"function"))this.events=this.events||[],this.events.push({name:a,f:b,unbind:Xa(this.shape||this.node||p.doc,a,b,c||this)});return this};d["un"+a]=da["un"+a]=function(b){for(var c=this.events||[],f=c.length;f--;)if(c[f].name==a&&c[f].f==b){c[f].unbind();c.splice(f,1);!c.length&&delete this.events;break}return this}})(j[Ka]);
da.data=function(a,b){var c=Za[this.id]=Za[this.id]||{};if(arguments.length==1){if(d.is(a,"object")){for(var f in a)a[m](f)&&this.data(f,a[f]);return this}l("raphael.data.get."+this.id,this,c[a],a);return c[a]}c[a]=b;l("raphael.data.set."+this.id,this,b,a);return this};da.removeData=function(a){a==null?Za[this.id]={}:Za[this.id]&&delete Za[this.id][a];return this};var gb=[],la=function(){this.untrack=Xa(p.doc,"mouseup",Ga,this)},Ga=function(){this.untrack();this.untrack=null;return this.fn&&this.fn.apply(this.scope||
this.el,arguments)};da.mouseup=function(a,b,c){if(!c)return d.mouseup.apply(this,arguments);gb.push(c={el:this,fn:a,scope:b});c.unbind=Xa(this.shape||this.node||p.doc,"mousedown",la,c);return this};da.unmouseup=function(a){for(var b=gb.length,c;b--;)gb[b].el===this&&gb[b].fn===a&&(c=gb[b],c.unbind(),c.untrack&&c.untrack(),gb.splice(b,1));return c?this:d.unmouseup.apply(this,arguments)};da.hover=function(a,b,c,f){return this.mouseover(a,c).mouseout(b,f||c)};da.unhover=function(a,b){return this.unmouseover(a).unmouseout(b)};
var hb=[];da.drag=function(a,b,c,f,g,o){function e(j){(j.originalEvent||j).preventDefault();var T=p.doc.documentElement.scrollTop||p.doc.body.scrollTop,A=p.doc.documentElement.scrollLeft||p.doc.body.scrollLeft;this._drag.x=j.clientX+A;this._drag.y=j.clientY+T;this._drag.id=j.identifier;!Ya.length&&d.mousemove(Ta).mouseup(db);Ya.push({el:this,move_scope:f,start_scope:g,end_scope:o});b&&l.on("raphael.drag.start."+this.id,b);a&&l.on("raphael.drag.move."+this.id,a);c&&l.on("raphael.drag.end."+this.id,
c);l("raphael.drag.start."+this.id,g||f||this,j.clientX+A,j.clientY+T,j)}this._drag={};hb.push({el:this,start:e});this.mousedown(e);return this};da.onDragOver=function(a){a?l.on("raphael.drag.over."+this.id,a):l.unbind("raphael.drag.over."+this.id)};da.undrag=function(){for(var a=hb.length;a--;)hb[a].el==this&&(this.unmousedown(hb[a].start),hb.splice(a,1),l.unbind("raphael.drag.*."+this.id));!hb.length&&d.unmousemove(Ta).unmouseup(db)};da.follow=function(a,b,c){if(a.removed||a.constructor!==d.el.constructor)return this;
a.followers.push({el:this,stalk:c={before:"insertBefore",after:"insertAfter"}[c],cb:b});c&&this[c](a);return this};da.unfollow=function(a){if(a.removed||a.constructor!==d.el.constructor)return this;for(var b=0,c=a.followers.length;b<c;b++)if(a.followers[b].el===this){a.followers.splice(b,1);break}return this};var fb=Array.prototype.splice;O.group=function(){var a;a=arguments;var b=a.length-1,c=a[b];c&&c.constructor===d.el.constructor?(a[b]=void 0,fb.call(a,b,1)):c=void 0;a=d._engine.group(this,a[0],
c);this.__set__&&this.__set__.push(a);return a};O.circle=function(){var a;a=arguments;var b=a.length-1,c=a[b];c&&c.constructor===d.el.constructor?(a[b]=void 0,fb.call(a,b,1)):c=void 0;a=d._engine.circle(this,a[0]||0,a[1]||0,a[2]||0,c);this.__set__&&this.__set__.push(a);return a};O.rect=function(){var a;a=arguments;var b=a.length-1,c=a[b];c&&c.constructor===d.el.constructor?(a[b]=void 0,fb.call(a,b,1)):c=void 0;a=d._engine.rect(this,a[0]||0,a[1]||0,a[2]||0,a[3]||0,a[4]||0,c);this.__set__&&this.__set__.push(a);
return a};O.ellipse=function(){var a;a=arguments;var b=a.length-1,c=a[b];c&&c.constructor===d.el.constructor?(a[b]=void 0,fb.call(a,b,1)):c=void 0;a=d._engine.ellipse(this,a[0]||0,a[1]||0,a[2]||0,a[3]||0,c);this.__set__&&this.__set__.push(a);return a};O.path=function(){var a,b=arguments,c=b.length-1;(a=b[c])&&a.constructor===d.el.constructor?(b[c]=void 0,fb.call(b,c,1)):a=void 0;(b=b[0])&&!d.is(b,"string")&&d.is(b[0],pa);a=d._engine.path(d.format[X](d,arguments),this,a);this.__set__&&this.__set__.push(a);
return a};O.image=function(){var a;a=arguments;var b=a.length-1,c=a[b];c&&c.constructor===d.el.constructor?(a[b]=void 0,fb.call(a,b,1)):c=void 0;a=d._engine.image(this,a[0]||"about:blank",a[1]||0,a[2]||0,a[3]||0,a[4]||0,c);this.__set__&&this.__set__.push(a);return a};O.text=function(){var a;a=arguments;var c=a.length-1,f=a[c];f&&f.constructor===d.el.constructor?(a[c]=void 0,fb.call(a,c,1)):f=void 0;a=d._engine.text(this,a[0]||0,a[1]||0,b(a[2]||""),f);this.__set__&&this.__set__.push(a);return a};O.set=
function(a){!d.is(a,"array")&&(a=Array.prototype.splice.call(arguments,0,arguments.length));var b=new ib(a);this.__set__&&this.__set__.push(b);return b};O.setStart=function(a){this.__set__=a||this.set()};O.setFinish=function(){var a=this.__set__;delete this.__set__;return a};O.setSize=function(a,b){return d._engine.setSize.call(this,a,b)};O.setViewBox=function(a,b,c,f,g){return d._engine.setViewBox.call(this,a,b,c,f,g)};O.top=O.bottom=null;O.raphael=d;O.getElementByPoint=function(a,b){var c=this.canvas,
f=p.doc.elementFromPoint(a,b);if(p.win.opera&&f.tagName=="svg"){var d;d=c.getBoundingClientRect();var g=c.ownerDocument,o=g.body,g=g.documentElement;d={y:d.top+(p.win.pageYOffset||g.scrollTop||o.scrollTop)-(g.clientTop||o.clientTop||0),x:d.left+(p.win.pageXOffset||g.scrollLeft||o.scrollLeft)-(g.clientLeft||o.clientLeft||0)};o=c.createSVGRect();o.x=a-d.x;o.y=b-d.y;o.width=o.height=1;d=c.getIntersectionList(o,null);d.length&&(f=d[d.length-1])}if(!f)return null;for(;f.parentNode&&f!=c.parentNode&&!f.raphael;)f=
f.parentNode;f==this.canvas.parentNode&&(f=c);return f=f&&f.raphael?this.getById(f.raphaelid):null};O.getById=function(a){for(var b=this.bottom;b;){if(b.id==a)return b;b=b.next}return null};O.forEach=function(a,b){for(var c=this.bottom;c;){if(a.call(b,c)===!1)break;c=c.next}return this};O.getElementsByPoint=function(a,b){var c=this.set();this.forEach(function(f){f.isPointInside(a,b)&&c.push(f)});return c};da.isPointInside=function(a,b){var c=this.realPath=this.realPath||I[this.type](this);return d.isPointInsidePath(c,
a,b)};da.getBBox=function(a){if(this.removed)return{};var b=this._;if(a){if(b.dirty||!b.bboxwt)this.realPath=I[this.type](this),b.bboxwt=ta(this.realPath),b.bboxwt.toString=ba,b.dirty=0;return b.bboxwt}if(b.dirty||b.dirtyT||!b.bbox){if(b.dirty||!this.realPath)b.bboxwt=0,this.realPath=I[this.type](this);b.bbox=ta(Q(this.realPath,this.matrix));b.bbox.toString=ba;b.dirty=b.dirtyT=0}return b.bbox};da.clone=function(){if(this.removed)return null;var a=this.paper[this.type]().attr(this.attr());this.__set__&&
this.__set__.push(a);return a};da.glow=function(a){if(this.type=="text")return null;for(var a=a||{},a={width:(a.width||10)+(+this.attr("stroke-width")||1),fill:a.fill||!1,opacity:a.opacity||0.5,offsetx:a.offsetx||0,offsety:a.offsety||0,color:a.color||"#000"},b=a.width/2,c=this.paper,f=c.set(),d=this.realPath||I[this.type](this),d=this.matrix?Q(d,this.matrix):d,g=1;g<b+1;g++)f.push(c.path(d).attr({stroke:a.color,fill:a.fill?a.color:"none","stroke-linejoin":"round","stroke-linecap":"round","stroke-width":+(a.width/
b*g).toFixed(3),opacity:+(a.opacity/b).toFixed(3)}));return f.insertBefore(this).translate(a.offsetx,a.offsety)};var ma=function(a,b,c,f,g,o,e,j,T){return T==null?k(a,b,c,f,g,o,e,j):d.findDotsAtSegment(a,b,c,f,g,o,e,j,r(a,b,c,f,g,o,e,j,T))},j=function(a,b){return function(c,f,g){for(var c=A(c),o,e,j,T,ga="",J={},n=0,s=0,h=c.length;s<h;s++){j=c[s];if(j[0]=="M")o=+j[1],e=+j[2];else{T=ma(o,e,j[1],j[2],j[3],j[4],j[5],j[6]);if(n+T>f){if(b&&!J.start){o=ma(o,e,j[1],j[2],j[3],j[4],j[5],j[6],f-n);ga+=["C"+
o.start.x,o.start.y,o.m.x,o.m.y,o.x,o.y];if(g)return ga;J.start=ga;ga=["M"+o.x,o.y+"C"+o.n.x,o.n.y,o.end.x,o.end.y,j[5],j[6]].join();n+=T;o=+j[5];e=+j[6];continue}if(!a&&!b)return o=ma(o,e,j[1],j[2],j[3],j[4],j[5],j[6],f-n),{x:o.x,y:o.y,alpha:o.alpha}}n+=T;o=+j[5];e=+j[6]}ga+=j.shift()+j}J.end=ga;o=a?n:b?J:d.findDotsAtSegment(o,e,j[0],j[1],j[2],j[3],j[4],j[5],1);o.alpha&&(o={x:o.x,y:o.y,alpha:o.alpha});return o}},lb=j(1),mb=j(),Ha=j(0,1);d.getTotalLength=lb;d.getPointAtLength=mb;d.getSubpath=function(a,
b,c){if(this.getTotalLength(a)-c<1.0E-6)return Ha(a,b).end;a=Ha(a,c,1);return b?Ha(a,b).end:a};da.getTotalLength=function(){if(this.type=="path"){if(this.node.getTotalLength)return this.node.getTotalLength();return lb(this.attrs.path)}};da.getPointAtLength=function(a){if(this.type=="path")return mb(this.attrs.path,a)};da.getSubpath=function(a,b){if(this.type=="path")return d.getSubpath(this.attrs.path,a,b)};j=d.easing_formulas={linear:function(a){return a},"<":function(a){return U(a,1.7)},">":function(a){return U(a,
0.48)},"<>":function(a){var b=0.48-a/1.04,c=f.sqrt(0.1734+b*b),a=c-b,a=U(S(a),1/3)*(a<0?-1:1),b=-c-b,b=U(S(b),1/3)*(b<0?-1:1),a=a+b+0.5;return(1-a)*3*a*a+a*a*a},backIn:function(a){return a*a*(2.70158*a-1.70158)},backOut:function(a){a-=1;return a*a*(2.70158*a+1.70158)+1},elastic:function(a){if(a==!!a)return a;return U(2,-10*a)*f.sin((a-0.075)*2*fa/0.3)+1},bounce:function(a){a<1/2.75?a*=7.5625*a:a<2/2.75?(a-=1.5/2.75,a=7.5625*a*a+0.75):a<2.5/2.75?(a-=2.25/2.75,a=7.5625*a*a+0.9375):(a-=2.625/2.75,a=
7.5625*a*a+0.984375);return a}};j.easeIn=j["ease-in"]=j["<"];j.easeOut=j["ease-out"]=j[">"];j.easeInOut=j["ease-in-out"]=j["<>"];j["back-in"]=j.backIn;j["back-out"]=j.backOut;var qa=[],wa=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(a){setTimeout(a,16)},Ra=function(){for(var a=+new Date,b=0;b<qa.length;b++){var c=qa[b];if(!c.el.removed&&!c.paused){var f=a-c.start,g=c.ms,o=
c.easing,j=c.from,e=c.diff,T=c.to,A=c.el,ga={},J,n={},s;c.initstatus?(f=(c.initstatus*c.anim.top-c.prev)/(c.percent-c.prev)*g,c.status=c.initstatus,delete c.initstatus,c.stop&&qa.splice(b--,1)):c.status=(c.prev+(c.percent-c.prev)*(f/g))/c.anim.top;if(!(f<0))if(f<g){var h=o(f/g),ka;for(ka in j)if(j[m](ka)){switch(Sa[ka]){case V:J=+j[ka]+h*g*e[ka];break;case "colour":J="rgb("+[kb(Va(j[ka].r+h*g*e[ka].r)),kb(Va(j[ka].g+h*g*e[ka].g)),kb(Va(j[ka].b+h*g*e[ka].b))].join(",")+")";break;case "path":J=[];f=
0;for(o=j[ka].length;f<o;f++){J[f]=[j[ka][f][0]];T=1;for(n=j[ka][f].length;T<n;T++)J[f][T]=(+j[ka][f][T]+h*g*e[ka][f][T]).toFixed(4);J[f]=J[f].join(v)}J=J.join(v);break;case "transform":if(e[ka].real){J=[];f=0;for(o=j[ka].length;f<o;f++){J[f]=[j[ka][f][0]];T=1;for(n=j[ka][f].length;T<n;T++)J[f][T]=j[ka][f][T]+h*g*e[ka][f][T]}}else J=function(a){return+j[ka][a]+h*g*e[ka][a]},J=[["m",J(0),J(1),J(2),J(3),J(4),J(5)]];break;case "csv":if(ka=="clip-rect"){J=[];for(f=4;f--;)J[f]=+j[ka][f]+h*g*e[ka][f]}break;
default:o=[][K](j[ka]);J=[];for(f=A.ca[ka].length;f--;)J[f]=+o[f]+h*g*e[ka][f]}ga[ka]=J}A.attr(ga);(function(a,b,c){setTimeout(function(){l("raphael.anim.frame."+a,b,c)})})(A.id,A,c.anim)}else{(function(a,b,c){setTimeout(function(){l("raphael.anim.frame."+b.id,b,c);l("raphael.anim.finish."+b.id,b,c);d.is(a,"function")&&a.call(b)})})(c.callback,A,c.anim);A.attr(T);qa.splice(b--,1);if(c.repeat>1&&!c.next){for(s in T)T[m](s)&&(n[s]=c.totalOrigin[s]);c.el.attr(n);L(c.anim,c.el,c.anim.percents[0],null,
c.totalOrigin,c.repeat-1)}c.next&&!c.stop&&L(c.anim,c.el,c.next,null,c.totalOrigin,c.repeat)}}}d.svg&&A&&A.paper&&A.paper.safari();qa.length&&wa(Ra)},kb=function(a){return a>255?255:a<0?0:a};da.animateWith=function(a,b,c,f,g,o){if(this.removed)return o&&o.call(this),this;c=c instanceof H?c:d.animation(c,f,g,o);L(c,this,c.percents[0],null,this.attr());c=0;for(f=qa.length;c<f;c++)if(qa[c].anim==b&&qa[c].el==a){qa[f-1].start=qa[c].start;break}return this};da.onAnimation=function(a){a?l.on("raphael.anim.frame."+
this.id,a):l.unbind("raphael.anim.frame."+this.id);return this};H.prototype.delay=function(a){var b=new H(this.anim,this.ms);b.times=this.times;b.del=+a||0;return b};H.prototype.repeat=function(a){var b=new H(this.anim,this.ms);b.del=this.del;b.times=f.floor(t(a,0))||1;return b};d.animation=function(a,b,c,f){if(a instanceof H)return a;if(d.is(c,"function")||!c)f=f||c||null,c=null;var a=Object(a),b=+b||0,g={},o,j;for(j in a)a[m](j)&&ja(j)!=j&&ja(j)+"%"!=j&&(o=!0,g[j]=a[j]);return o?(c&&(g.easing=c),
f&&(g.callback=f),new H({100:g},b)):new H(a,b)};da.animate=function(a,b,c,f){if(this.removed)return f&&f.call(this),this;a=a instanceof H?a:d.animation(a,b,c,f);L(a,this,a.percents[0],null,this.attr());return this};da.setTime=function(a,b){a&&b!=null&&this.status(a,u(b,a.ms)/a.ms);return this};da.status=function(a,b){var c=[],f=0,d,g;if(b!=null)return L(a,this,-1,u(b,1)),this;else{for(d=qa.length;f<d;f++)if(g=qa[f],g.el.id==this.id&&(!a||g.anim==a)){if(a)return g.status;c.push({anim:g.anim,status:g.status})}if(a)return 0;
return c}};da.pause=function(a){for(var b=0;b<qa.length;b++)if(qa[b].el.id==this.id&&(!a||qa[b].anim==a)&&l("raphael.anim.pause."+this.id,this,qa[b].anim)!==!1)qa[b].paused=!0;return this};da.resume=function(a){for(var b=0;b<qa.length;b++)if(qa[b].el.id==this.id&&(!a||qa[b].anim==a)){var c=qa[b];l("raphael.anim.resume."+this.id,this,c.anim)!==!1&&(delete c.paused,this.status(c.anim,c.status))}return this};da.stop=function(a){for(var b=0;b<qa.length;b++)qa[b].el.id==this.id&&(!a||qa[b].anim==a)&&l("raphael.anim.stop."+
this.id,this,qa[b].anim)!==!1&&qa.splice(b--,1);return this};l.on("raphael.remove",B);l.on("raphael.clear",B);da.toString=function(){return"Rapha\u00ebl\u2019s object"};da.toFront=function(){if(this.removed)return this;var a=d._engine.getNode(this),b=this.parent,c=this.followers,f;d._tofront(this,b)&&b.canvas.appendChild(a);a=0;for(b=c.length;a<b;a++)(f=c[a]).stalk&&f.el[f.stalk](this);return this};da.toBack=function(){if(this.removed)return this;var a=d._engine.getNode(this),b=this.parent,c=this.followers,
f;d._toback(this,b)&&b.canvas.insertBefore(a,b.canvas.firstChild);a=0;for(b=c.length;a<b;a++)(f=c[a]).stalk&&f.el[f.stalk](this);return this};da.insertAfter=function(a){if(this.removed)return this;var b=d._engine.getNode(this),c=d._engine.getLastNode(a),f=a.parent.canvas,g=this.followers,o;c.nextSibling?f.insertBefore(b,c.nextSibling):f.appendChild(b);d._insertafter(this,a,this.parent,a.parent);b=0;for(c=g.length;b<c;b++)(o=g[b]).stalk&&o.el[o.stalk](a);return this};da.insertBefore=function(a){if(this.removed)return this;
var b=d._engine.getNode(this),c=d._engine.getNode(a),f=this.followers,g;a.parent.canvas.insertBefore(b,c);d._insertbefore(this,a,this.parent,a.parent);this.parent=a.parent;b=0;for(c=f.length;b<c;b++)(g=f[b]).stalk&&g.el[g.stalk](a);return this};da.appendChild=function(a){if(this.removed||this.type!=="group")return this;var b=this.followers,c,f,g;if(a.parent===this)return a.toFront(),this;f=d._engine.getNode(a);d._tear(a,a.parent);this.canvas.appendChild(f);a.parent=this;!this.bottom&&(this.bottom=
a);a.prev=this.top;a.next=null;this.top&&(this.top.next=a);this.top=a;f=0;for(g=b.length;f<g;f++)(c=b[f]).stalk&&c.el[c.stalk](a);return this};da.removeChild=function(a){if(this.removed||this.type!=="group"||a.parent!==this)return this;var b=d._engine.getNode(a),c=this.paper;d._tear(a,this);c.canvas.appendChild(b);this.parent=c;!c.bottom&&(c.bottom=this);(this.prev=c.top)&&(c.top.next=this);c.top=this;this.next=null;return this};var ib=function(a){this.items=[];this.length=0;this.type="set";if(a)for(var b=
0,c=a.length;b<c;b++)if(a[b]&&(a[b].constructor==da.constructor||a[b].constructor==ib))this[this.items.length]=this.items[this.items.length]=a[b],this.length++},j=ib.prototype;j.push=function(){for(var a,b,c=0,f=arguments.length;c<f;c++)if((a=arguments[c])&&(a.constructor==da.constructor||a.constructor==ib))b=this.items.length,this[b]=this.items[b]=a,this.length++;return this};j.pop=function(){this.length&&delete this[this.length--];return this.items.pop()};j.forEach=function(a,b){for(var c=0,f=this.items.length;c<
f;c++)if(a.call(b,this.items[c],c)===!1)break;return this};for(var Fa in da)da[m](Fa)&&(j[Fa]=function(a){return function(){var b=arguments;return this.forEach(function(c){c[a][X](c,b)})}}(Fa));j.attr=function(a,b){if(a&&d.is(a,pa)&&d.is(a[0],"object"))for(var c=0,f=a.length;c<f;c++)this.items[c].attr(a[c]);else{c=0;for(f=this.items.length;c<f;c++)this.items[c].attr(a,b)}return this};j.clear=function(){for(;this.length;)this.pop()};j.splice=function(a,b){var a=a<0?t(this.length+a,0):a,b=t(0,u(this.length-
a,isNaN(b)&&this.length||b)),c=[],f=[],d=[],g;for(g=2;g<arguments.length;g++)d.push(arguments[g]);for(g=0;g<b;g++)f.push(this[a+g]);for(;g<this.length-a;g++)c.push(this[a+g]);var o=d.length;for(g=0;g<o+c.length;g++)this.items[a+g]=this[a+g]=g<o?d[g]:c[g-o];for(g=this.items.length=this.length-=b-o;this[g];)delete this[g++];return new ib(f)};j.exclude=function(a){for(var b=0,c=this.length;b<c;b++)if(this[b]==a)return this.splice(b,1),!0};j.animate=function(a,b,c,f){(d.is(c,"function")||!c)&&(f=c||null);
var g=this.items.length,o=g,j=this,e;if(!g)return this;f&&(e=function(){!--g&&f.call(j)});c=d.is(c,"string")?c:e;b=d.animation(a,b,c,e);for(a=this.items[--o].animate(b);o--;)this.items[o]&&!this.items[o].removed&&this.items[o].animateWith(a,b,b);return this};j.insertAfter=function(a){for(var b=this.items.length;b--;)this.items[b].insertAfter(a);return this};j.getBBox=function(){for(var a=[],b=[],c=[],f=[],d=this.items.length;d--;)if(!this.items[d].removed){var g=this.items[d].getBBox();a.push(g.x);
b.push(g.y);c.push(g.x+g.width);f.push(g.y+g.height)}a=u[X](0,a);b=u[X](0,b);c=t[X](0,c);f=t[X](0,f);return{x:a,y:b,x2:c,y2:f,width:c-a,height:f-b}};j.clone=function(a){for(var a=new ib,b=0,c=this.items.length;b<c;b++)a.push(this.items[b].clone());return a};j.toString=function(){return"Rapha\u00ebl\u2018s set"};d.registerFont=function(a){if(!a.face)return a;this.fonts=this.fonts||{};var b={w:a.w,face:{},glyphs:{}},c=a.face["font-family"],f;for(f in a.face)a.face[m](f)&&(b.face[f]=a.face[f]);this.fonts[c]?
this.fonts[c].push(b):this.fonts[c]=[b];if(!a.svg){b.face["units-per-em"]=Da(a.face["units-per-em"],10);for(var d in a.glyphs)if(a.glyphs[m](d)&&(c=a.glyphs[d],b.glyphs[d]={w:c.w,k:{},d:c.d&&"M"+c.d.replace(/[mlcxtrv]/g,function(a){return{l:"L",c:"C",x:"z",t:"m",r:"l",v:"c"}[a]||"M"})+"z"},c.k))for(var g in c.k)c[m](g)&&(b.glyphs[d].k[g]=c.k[g])}return a};O.getFont=function(a,b,c,f){f=f||"normal";c=c||"normal";b=+b||{normal:400,bold:700,lighter:300,bolder:800}[b]||400;if(d.fonts){var g=d.fonts[a];
if(!g){var a=RegExp("(^|\\s)"+a.replace(/[^\w\d\s+!~.:_-]/g,"")+"(\\s|$)","i"),o;for(o in d.fonts)if(d.fonts[m](o)&&a.test(o)){g=d.fonts[o];break}}var j;if(g){o=0;for(a=g.length;o<a;o++)if(j=g[o],j.face["font-weight"]==b&&(j.face["font-style"]==c||!j.face["font-style"])&&j.face["font-stretch"]==f)break}return j}};O.print=function(a,f,g,o,j,e,T){var e=e||"middle",T=t(u(T||0,1),-1),A=b(g)[c](""),ga=0,J=0,n="";d.is(o,g)&&(o=this.getFont(o));if(o)for(var g=(j||16)/o.face["units-per-em"],s=o.face.bbox[c](P),
j=+s[0],h=s[3]-s[1],ka=0,e=+s[1]+(e=="baseline"?h+ +o.face.descent:h/2),s=0,za=A.length;s<za;s++){if(A[s]=="\n")J=W=ga=0,ka+=h;else{var C=J&&o.glyphs[A[s-1]]||{},W=o.glyphs[A[s]];ga+=J?(C.w||o.w)+(C.k&&C.k[A[s]]||0)+o.w*T:0;J=1}W&&W.d&&(n+=d.transformPath(W.d,["t",ga*g,ka*g,"s",g,g,j,e,"t",(a-j)/g,(f-e)/g]))}return this.path(n).attr({fill:"#000",stroke:"none"})};O.add=function(a){if(d.is(a,"array"))for(var b=this.set(),c=0,f=a.length,g;c<f;c++)g=a[c]||{},M[m](g.type)&&b.push(this[g.type]().attr(g));
return b};d.format=function(a,b){var c=d.is(b,pa)?[0][K](b):arguments;a&&d.is(a,"string")&&c.length-1&&(a=a.replace(x,function(a,b){return c[++b]==null?"":c[b]}));return a||""};d.fullfill=function(){var a=/\{([^\}]+)\}/g,b=/(?:(?:^|\.)(.+?)(?=\[|\.|$|\()|\[('|")(.+?)\2\])(\(\))?/g,c=function(a,c,f){var g=f;c.replace(b,function(a,b,c,f,d){b=b||f;g&&(b in g&&(g=g[b]),typeof g=="function"&&d&&(g=g()))});return g=(g==null||g==f?a:g)+""};return function(b,f){return String(b).replace(a,function(a,b){return c(a,
b,f)})}}();d.ninja=function(){Z.was?p.win.Raphael=Z.is:delete Raphael;return d};d.st=j;(function(a,b,c){function f(){/in/.test(a.readyState)?setTimeout(f,9):d.eve("raphael.DOMload")}if(a.readyState==null&&a.addEventListener)a.addEventListener(b,c=function(){a.removeEventListener(b,c,!1);a.readyState="complete"},!1),a.readyState="loading";f()})(document,"DOMContentLoaded");Z.was?p.win.Raphael=d:Raphael=d;l.on("raphael.DOMload",function(){ia=!0})})();window.Raphael.svg&&function(d){var h=String,i=parseFloat,
e=parseInt,k=Math,l=k.max,q=k.abs,D=k.pow,w=k.sqrt,E=/[, ]+/,H=/AppleWebKit/.test(d._g.win.navigator.userAgent),L=d.eve,B={block:"M5,0 0,2.5 5,5z",classic:"M5,0 0,2.5 5,5 3.5,3 3.5,2z",diamond:"M2.5,0 5,2.5 2.5,5 0,2.5z",open:"M6,1 1,3.5 6,6",oval:"M2.5,0A2.5,2.5,0,0,1,2.5,5 2.5,2.5,0,0,1,2.5,0z"},ia=d._shapeRenderingAttrs={speed:"optimizeSpeed",crisp:"crispEdges",precision:"geometricPrecision"},P={};d._url=/msie/i.test(navigator.userAgent)&&!window.opera?"":window.location.href.replace(/#.*?$/,"");
d.toString=function(){return"Your browser supports SVG.\nYou are running Rapha\u00ebl "+this.version};var M=d._createNode=function(a,b){if(b){typeof a=="string"&&(a=M(a));for(var c in b)b.hasOwnProperty(c)&&(c.substring(0,6)=="xlink:"?a.setAttributeNS("http://www.w3.org/1999/xlink",c.substring(6),h(b[c])):a.setAttribute(c,h(b[c])))}else a=d._g.doc.createElementNS("http://www.w3.org/2000/svg",a);return a},x={userSpaceOnUse:"userSpaceOnUse",objectBoundingBox:"objectBoundingBox"},m={pad:"pad",redlect:"reflect",
repeat:"repeat"},p=function(a,b){var c="linear",j=a.id+b,e=0.5,S=0.5,p,y,v,E,L,H=a.node,B=a.paper,P=H.style,O=d._g.doc.getElementById(j);if(!O&&B.defs){b=h(b).replace(d._radial_gradient,function(a,b){c="radial";b=b&&b.split(",")||[];E=b[5];L=b[6];var g=b[0],d=b[1],j=b[2],h=b[3],t=b[4],k=g&&d,l;j&&(p=/\%/.test(j)?j:i(j));if(E===x.userSpaceOnUse)return k&&(e=g,S=d),h&&t&&(y=h,v=t,k||(e=y,S=v)),"";k&&(e=i(g),S=i(d),g=(S>0.5)*2-1,(l=D(e-0.5,2))+D(S-0.5,2)>0.25&&l<0.25&&(S=w(0.25-l)*g+0.5)&&S!==0.5&&(S=
S.toFixed(5)-1.0E-5*g));h&&t&&(y=i(h),v=i(t),g=(v>0.5)*2-1,(l=D(y-0.5,2))+D(v-0.5,2)>0.25&&l<0.25&&(v=w(0.25-l)*g+0.5)&&v!==0.5&&(v=v.toFixed(5)-1.0E-5*g),k||(e=y,S=v));return""});b=b.split(/\s*\-\s*/);if(c=="linear"){var O=b.shift(),Z=O.match(/\((.*)\)/),R,Z=Z&&Z[1]&&Z[1].split(/\s*\,\s*/),O=-i(O);if(isNaN(O))return null;Z&&Z.length?(Z[0]in x?(E=Z.shift(),Z[0]in m&&(L=Z.shift())):(Z[4]&&(E=Z[4]),Z[5]&&(L=Z[5])),R=[Z[0]||"0%",Z[1]||"0%",Z[2]||"100%",Z[3]||"0%"]):(R=[0,0,k.cos(d.rad(O)),k.sin(d.rad(O))],
O=1/(l(q(R[2]),q(R[3]))||1),R[2]*=O,R[3]*=O,R[2]<0&&(R[0]=-R[2],R[2]=0),R[3]<0&&(R[1]=-R[3],R[3]=0))}Z=d._parseDots(b);if(!Z)return null;j=j.replace(/[\(\)\s,\xb0#]/g,"_");a.gradient&&j!==a.gradient.id&&(B.defs.removeChild(a.gradient),delete a.gradient);if(!a.gradient){O=M(c+"Gradient",{id:j});a.gradient=O;E in x&&O.setAttribute("gradientUnits",h(E));L in m&&O.setAttribute("spreadMethod",h(L));c==="radial"?(p!==void 0&&O.setAttribute("r",h(p)),y!==void 0&&v!==void 0&&(O.setAttribute("cx",h(y)),O.setAttribute("cy",
h(v))),O.setAttribute("fx",h(e)),O.setAttribute("fy",h(S))):M(O,{x1:R[0],y1:R[1],x2:R[2],y2:R[3],gradientTransform:a.matrix.invert()});B.defs.appendChild(O);B=0;for(R=Z.length;B<R;B++)O.appendChild(M("stop",{offset:Z[B].offset?Z[B].offset:B?"100%":"0%","stop-color":Z[B].color||"#fff","stop-opacity":Z[B].opacity===void 0?1:Z[B].opacity}))}}M(H,{fill:"url('"+d._url+"#"+j+"')",opacity:1,"fill-opacity":1});P.fill="";P.opacity=1;return P.fillOpacity=1},R=function(a){var b=a.getBBox(1);M(a.pattern,{patternTransform:a.matrix.invert()+
" translate("+b.x+","+b.y+")"})},Z=function(a,b,c){if(a.type=="path"){for(var j=h(b).toLowerCase().split("-"),e=a.paper,i=c?"end":"start",k=a.node,l=a.attrs,p=l["stroke-width"],q=j.length,y="classic",m,v,x=3,r=3,D=5;q--;)switch(j[q]){case "block":case "classic":case "oval":case "diamond":case "open":case "none":y=j[q];break;case "wide":r=5;break;case "narrow":r=2;break;case "long":x=5;break;case "short":x=2}y=="open"?(x+=2,r+=2,D+=2,m=1,v=c?4:1,j={fill:"none",stroke:l.stroke}):(v=m=x/2,j={fill:l.stroke,
stroke:"none"});a._.arrows?c?(a._.arrows.endPath&&P[a._.arrows.endPath]--,a._.arrows.endMarker&&P[a._.arrows.endMarker]--):(a._.arrows.startPath&&P[a._.arrows.startPath]--,a._.arrows.startMarker&&P[a._.arrows.startMarker]--):a._.arrows={};if(y!="none"){var q="raphael-marker-"+y,w="raphael-marker-"+i+y+x+r;d._g.doc.getElementById(q)?P[q]++:(e.defs.appendChild(M(M("path"),{"stroke-linecap":"round",d:B[y],id:q})),P[q]=1);var E=d._g.doc.getElementById(w);E?(P[w]++,x=E.getElementsByTagName("use")[0]):
(E=M(M("marker"),{id:w,markerHeight:r,markerWidth:x,orient:"auto",refX:v,refY:r/2}),x=M(M("use"),{"xlink:href":"#"+q,transform:(c?"rotate(180 "+x/2+" "+r/2+") ":"")+"scale("+x/D+","+r/D+")","stroke-width":(1/((x/D+r/D)/2)).toFixed(4)}),E.appendChild(x),e.defs.appendChild(E),P[w]=1);M(x,j);e=m*(y!="diamond"&&y!="oval");c?(c=a._.arrows.startdx*p||0,p=d.getTotalLength(l.path)-e*p):(c=e*p,p=d.getTotalLength(l.path)-(a._.arrows.enddx*p||0));j={};j["marker-"+i]="url('"+d._url+"#"+w+"')";if(p||c)j.d=Raphael.getSubpath(l.path,
c,p);M(k,j);a._.arrows[i+"Path"]=q;a._.arrows[i+"Marker"]=w;a._.arrows[i+"dx"]=e;a._.arrows[i+"Type"]=y;a._.arrows[i+"String"]=b}else c?(c=a._.arrows.startdx*p||0,p=d.getTotalLength(l.path)-c):(c=0,p=d.getTotalLength(l.path)-(a._.arrows.enddx*p||0)),a._.arrows[i+"Path"]&&M(k,{d:Raphael.getSubpath(l.path,c,p)}),delete a._.arrows[i+"Path"],delete a._.arrows[i+"Marker"],delete a._.arrows[i+"dx"],delete a._.arrows[i+"Type"],delete a._.arrows[i+"String"];for(j in P)P.hasOwnProperty(j)&&!P[j]&&(a=d._g.doc.getElementById(j))&&
a.parentNode.removeChild(a)}},O={"":[0],none:[0],"-":[3,1],".":[1,1],"-.":[3,1,1,1],"-..":[3,1,1,1,1,1],". ":[1,3],"- ":[4,3],"--":[8,3],"- .":[4,3,1,3],"--.":[8,3,1,3],"--..":[8,3,1,3,1,3]},X=function(a,b,c){var j=O[h(b).toLowerCase()];if(b=j||b!==void 0&&[].concat(b)){var e=a.attrs["stroke-width"]||"1",c={round:e,square:e,butt:0}[a.attrs["stroke-linecap"]||c["stroke-linecap"]]||0,i,k=i=b.length;if(j)for(;i--;)b[i]=b[i]*e+(i%2?1:-1)*c;else for(i=0;i<k;i+=2)b[i]-=c,b[i+1]&&(b[i+1]+=c),b[i]<=0&&(b[i]=
0.1);d.is(b,"array")&&M(a.node,{"stroke-dasharray":b.join(",")})}},K=d._setFillAndStroke=function(a,b){var c=a.node,j=a.attrs,i=c.style.visibility;c.style.visibility="hidden";for(var k in b)if(b.hasOwnProperty(k)&&d._availableAttrs.hasOwnProperty(k)){var m=b[k];j[k]=m;switch(k){case "blur":a.blur(m);break;case "href":case "title":case "target":var v=c.parentNode;if(v.tagName.toLowerCase()!="a"){if(m=="")break;var x=M("a");v.insertBefore(x,c);x.appendChild(c);v=x}k=="target"?v.setAttributeNS("http://www.w3.org/1999/xlink",
"show",m=="blank"?"new":m):v.setAttributeNS("http://www.w3.org/1999/xlink",k,m);c.titleNode=v;break;case "cursor":c.style.cursor=m;break;case "transform":a.transform(m);break;case "rotation":d.is(m,"array")?a.rotate.apply(a,m):a.rotate(m);break;case "arrow-start":Z(a,m);break;case "arrow-end":Z(a,m,1);break;case "clip-path":var D=!0;case "clip-rect":v=!D&&h(m).split(E);a._.clipispath=!!D;if(D||v.length==4){a.clip&&a.clip.parentNode.parentNode.removeChild(a.clip.parentNode);var x=M("clipPath"),w=M(D?
"path":"rect");x.id=d.createUUID();M(w,D?{d:m?j["clip-path"]=d._pathToAbsolute(m):d._availableAttrs.path,fill:"none"}:{x:v[0],y:v[1],width:v[2],height:v[3],transform:a.matrix.invert()});x.appendChild(w);a.paper.defs.appendChild(x);M(c,{"clip-path":"url('"+d._url+"#"+x.id+"')"});a.clip=w}if(!m&&(m=c.getAttribute("clip-path")))(m=d._g.doc.getElementById(m.replace(/(^url\(#|\)$)/g,"")))&&m.parentNode.removeChild(m),M(c,{"clip-path":""}),delete a.clip;break;case "path":if(a.type=="path")M(c,{d:m?j.path=
d._pathToAbsolute(m):d._availableAttrs.path}),a._.dirty=1,a._.arrows&&("startString"in a._.arrows&&Z(a,a._.arrows.startString),"endString"in a._.arrows&&Z(a,a._.arrows.endString,1));break;case "width":if(c.setAttribute(k,m),a._.dirty=1,j.fx)k="x",m=j.x;else break;case "x":j.fx&&(m=-j.x-(j.width||0));case "rx":if(k=="rx"&&a.type=="rect")break;case "cx":c.setAttribute(k,m);a.pattern&&R(a);a._.dirty=1;break;case "height":if(c.setAttribute(k,m),a._.dirty=1,j.fy)k="y",m=j.y;else break;case "y":j.fy&&(m=
-j.y-(j.height||0));case "ry":if(k=="ry"&&a.type=="rect")break;case "cy":c.setAttribute(k,m);a.pattern&&R(a);a._.dirty=1;break;case "r":a.type=="rect"?M(c,{rx:m,ry:m}):c.setAttribute(k,m);a._.dirty=1;break;case "src":a.type=="image"&&c.setAttributeNS("http://www.w3.org/1999/xlink","href",m);break;case "stroke-width":if(a._.sx!=1||a._.sy!=1)m/=l(q(a._.sx),q(a._.sy))||1;a.paper._vbSize&&(m*=a.paper._vbSize);H&&m===0&&(m=1.0E-6);c.setAttribute(k,m);j["stroke-dasharray"]&&X(a,j["stroke-dasharray"],b);
a._.arrows&&("startString"in a._.arrows&&Z(a,a._.arrows.startString),"endString"in a._.arrows&&Z(a,a._.arrows.endString,1));break;case "stroke-dasharray":X(a,m,b);break;case "fill":var L=h(m).match(d._ISURL);if(L){var x=M("pattern"),B=M("image");x.id=d.createUUID();M(x,{x:0,y:0,patternUnits:"userSpaceOnUse",height:1,width:1});M(B,{x:0,y:0,"xlink:href":L[1]});x.appendChild(B);(function(b){d._preload(L[1],function(){var c=this.offsetWidth,f=this.offsetHeight;M(b,{width:c,height:f});M(B,{width:c,height:f});
a.paper.safari()})})(x);a.paper.defs.appendChild(x);M(c,{fill:"url('"+d._url+"#"+x.id+"')"});a.pattern=x;a.pattern&&R(a);break}v=d.getRGB(m);if(v.error){if((a.type=="circle"||a.type=="ellipse"||h(m).charAt()!="r")&&p(a,m)){if("opacity"in j||"fill-opacity"in j)if(v=d._g.doc.getElementById(c.getAttribute("fill").replace(/^url\(#|\)$/g,"")))v=v.getElementsByTagName("stop"),M(v[v.length-1],{"stop-opacity":("opacity"in j?j.opacity:1)*("fill-opacity"in j?j["fill-opacity"]:1)});j.gradient=m;j.fill="none";
break}}else delete b.gradient,delete j.gradient,!d.is(j.opacity,"undefined")&&d.is(b.opacity,"undefined")&&M(c,{opacity:j.opacity}),!d.is(j["fill-opacity"],"undefined")&&d.is(b["fill-opacity"],"undefined")&&M(c,{"fill-opacity":j["fill-opacity"]});v.hasOwnProperty("opacity")?(M(c,{"fill-opacity":v.opacity>1?v.opacity/100:v.opacity}),a._.opacitydirty=!0):a._.opacitydirty&&d.is(j["fill-opacity"],"undefined")&&d.is(b["fill-opacity"],"undefined")&&(c.removeAttribute("fill-opacity"),delete a._.opacitydirty);
case "stroke":v=d.getRGB(m);c.setAttribute(k,v.hex);k=="stroke"&&v.hasOwnProperty("opacity")&&M(c,{"stroke-opacity":v.opacity>1?v.opacity/100:v.opacity});k=="stroke"&&a._.arrows&&("startString"in a._.arrows&&Z(a,a._.arrows.startString),"endString"in a._.arrows&&Z(a,a._.arrows.endString,1));break;case "gradient":(a.type=="circle"||a.type=="ellipse"||h(m).charAt()!="r")&&p(a,m);break;case "shape-rendering":j[k]=m=ia[m]||m||"default";c.setAttribute(k,m);c.style.shapeRendering=m;break;case "line-height":case "vertical-align":break;
case "visibility":m==="hidden"?a.hide():a.show();break;case "opacity":j.gradient&&!j.hasOwnProperty("stroke-opacity")&&M(c,{"stroke-opacity":m>1?m/100:m});case "fill-opacity":if(j.gradient){if(v=d._g.doc.getElementById(c.getAttribute("fill").replace(/^url\(#|\)$/g,"")))v=v.getElementsByTagName("stop"),M(v[v.length-1],{"stop-opacity":m});break}default:k=="font-size"&&(m=e(m,10)+"px"),v=k.replace(/(\-.)/g,function(a){return a.substring(1).toUpperCase()}),c.style[v]=m,a._.dirty=1,c.setAttribute(k,m)}}y(a,
b);c.style.visibility=i},y=function(a,b){if(!(a.type!="text"||!b.hasOwnProperty("text")&&!b.hasOwnProperty("font")&&!b.hasOwnProperty("font-size")&&!b.hasOwnProperty("x")&&!b.hasOwnProperty("y")&&!b.hasOwnProperty("line-height")&&!b.hasOwnProperty("vertical-align"))){var c=a.attrs,j=a.node,e=j.firstChild&&d._g.doc.defaultView.getComputedStyle(j.firstChild,"")?i(d._g.doc.defaultView.getComputedStyle(j.firstChild,"").getPropertyValue("font-size")):10,k=i(b["line-height"]||c["line-height"])||e*1.2,l=
c.hasOwnProperty("vertical-align")?c["vertical-align"]:"middle";isNaN(k)&&(k=e*1.2);l=l==="top"?-0.5:l==="bottom"?0.5:0;if(b.hasOwnProperty("text")&&(b.text!==c.text||a._textdirty)){for(c.text=b.text;j.firstChild;)j.removeChild(j.firstChild);for(var m=h(b.text).split(/\n|<br\s*?\/?>/ig),e=[],p,v=0,q=m.length;v<q;v++)p=M("tspan"),v?M(p,{dy:k,x:c.x}):M(p,{dy:k*m.length*l,x:c.x}),m[v]||(p.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),m[v]=" "),p.appendChild(d._g.doc.createTextNode(m[v])),
j.appendChild(p),e[v]=p;a._textdirty=!1}else{e=j.getElementsByTagName("tspan");v=0;for(q=e.length;v<q;v++)v?M(e[v],{dy:k,x:c.x}):M(e[0],{dy:k*e.length*l,x:c.x})}M(j,{x:c.x,y:c.y});a._.dirty=1;j=a._getBBox();(c=c.y-(j.y+j.height/2))&&d.is(c,"finite")&&e[0]&&M(e[0],{dy:c})}},v=function(a,b,c){c=c||b;this.node=this[0]=a;a.raphael=!0;a.raphaelid=this.id=d._oid++;this.matrix=d.matrix();this.realPath=null;this.attrs=this.attrs||{};this.styles=this.styles||{};this.followers=this.followers||[];this.paper=
b;this.ca=this.customAttributes=this.customAttributes||new b._CustomAttributes;this._={transform:[],sx:1,sy:1,deg:0,dx:0,dy:0,dirty:1};this.parent=c;!c.bottom&&(c.bottom=this);(this.prev=c.top)&&(c.top.next=this);c.top=this;this.next=null},b=d.el;v.prototype=b;b.constructor=v;d._engine.getNode=function(a){a=a.node||a[0].node;return a.titleNode||a};d._engine.getLastNode=function(a){a=a.node||a[a.length-1].node;return a.titleNode||a};d._engine.path=function(a,b,c){var d=M("path");c&&c.canvas&&c.canvas.appendChild(d)||
b.canvas&&b.canvas.appendChild(d);b=new v(d,b,c);b.type="path";K(b,{fill:"none",stroke:"#000",path:a});return b};b.rotate=function(a,b,c){if(this.removed)return this;a=h(a).split(E);a.length-1&&(b=i(a[1]),c=i(a[2]));a=i(a[0]);c==null&&(b=c);if(b==null||c==null)c=this.getBBox(1),b=c.x+c.width/2,c=c.y+c.height/2;this.transform(this._.transform.concat([["r",a,b,c]]));return this};b.scale=function(a,b,c,d){var j;if(this.removed)return this;a=h(a).split(E);a.length-1&&(b=i(a[1]),c=i(a[2]),d=i(a[3]));a=
i(a[0]);b==null&&(b=a);d==null&&(c=d);if(c==null||d==null)j=this.getBBox(1);c=c==null?j.x+j.width/2:c;d=d==null?j.y+j.height/2:d;this.transform(this._.transform.concat([["s",a,b,c,d]]));return this};b.translate=function(a,b){if(this.removed)return this;a=h(a).split(E);a.length-1&&(b=i(a[1]));a=i(a[0])||0;this.transform(this._.transform.concat([["t",a,+b||0]]));return this};b.transform=function(a){var b=this._;if(a==null)return b.transform;d._extractTransform(this,a);this.clip&&!b.clipispath&&M(this.clip,
{transform:this.matrix.invert()});this.pattern&&R(this);this.node&&M(this.node,{transform:this.matrix});if(b.sx!=1||b.sy!=1)a=this.attrs.hasOwnProperty("stroke-width")?this.attrs["stroke-width"]:1,this.attr({"stroke-width":a});return this};b.hide=function(){!this.removed&&this.paper.safari(this.node.style.display="none");return this};b.show=function(){!this.removed&&this.paper.safari(this.node.style.display="");return this};b.remove=function(){if(!this.removed&&this.parent.canvas){var a=d._engine.getNode(this),
b=this.paper,c=b.defs;b.__set__&&b.__set__.exclude(this);L.unbind("raphael.*.*."+this.id);for(this.gradient&&c&&c.removeChild(this.gradient);c=this.followers.pop();)c.el.remove();this.parent.canvas.removeChild(a);d._tear(this,b);for(c in this)this[c]=typeof this[c]==="function"?d._removedFactory(c):null;this.removed=!0}};b._getBBox=function(){var a=this.node,b={},c;a.style.display==="none"&&(this.show(),c=!0);try{b=a.getBBox()}catch(d){}finally{b=b||{}}c&&this.hide();return b};b.css=function(a,b){if(this.removed)return this;
if(b==null&&d.is(a,"string")){for(var c=a.split(E),j={},e=0,h=c.length;e<h;e++)a=c[e],a in this.styles&&(j[a]=this.styles[a]);return h-1?j:j[c[0]]}if(b==null&&d.is(a,"array")){j={};e=0;for(h=a.length;e<h;e++)j[a[e]]=this.styles(a[e]);return j}b!=null?(c={},c[a]=b):a!=null&&d.is(a,"object")&&(c=a);j={};for(h in c)e=h.replace(/\B([A-Z]{1})/g,"-$1").toLowerCase(),d._availableAttrs.hasOwnProperty(e)||e==="color"?(e==="color"&&this.type==="text"&&(e="fill"),j[e]=c[h],j.dirty=!0):(L("raphael.css."+e+"."+
this.id,this,c[h],e),this.node.style[e]=c[h],this.styles[e]=c[h]);e=0;for(h=this.followers.length;e<h;e++)this.followers[e].el.css(c);j.hasOwnProperty("dirty")&&(delete j.dirty,this.attr(j));return this};b.attr=function(a,b){if(this.removed)return this;if(a==null){var c={},j;for(j in this.attrs)this.attrs.hasOwnProperty(j)&&(c[j]=this.attrs[j]);c.gradient&&c.fill=="none"&&(c.fill=c.gradient)&&delete c.gradient;c.transform=this._.transform;c.visibility=this.node.style.display==="none"?"hidden":"visible";
return c}if(b==null&&d.is(a,"string")){if(a=="fill"&&this.attrs.fill=="none"&&this.attrs.gradient)return this.attrs.gradient;if(a=="transform")return this._.transform;if(a=="visibility")return this.node.style.display==="none"?"hidden":"visible";var c=a.split(E),e={},h=0;for(j=c.length;h<j;h++)a=c[h],e[a]=a in this.attrs?this.attrs[a]:d.is(this.ca[a],"function")?this.ca[a].def:d._availableAttrs[a];return j-1?e:e[c[0]]}if(b==null&&d.is(a,"array")){e={};h=0;for(j=a.length;h<j;h++)e[a[h]]=this.attr(a[h]);
return e}b!=null?(c={},c[a]=b):a!=null&&d.is(a,"object")&&(c=a);for(h in c)L("raphael.attr."+h+"."+this.id,this,c[h],h);var i={};for(h in this.ca)if(this.ca[h]&&c.hasOwnProperty(h)&&d.is(this.ca[h],"function")&&!this.ca["_invoked"+h]){this.ca["_invoked"+h]=!0;j=this.ca[h].apply(this,[].concat(c[h]));delete this.ca["_invoked"+h];for(e in j)j.hasOwnProperty(e)&&(c[e]=j[e]);this.attrs[h]=c[h];j===!1&&(i[h]=c[h],delete c[h])}K(this,c);var k,h=0;for(j=this.followers.length;h<j;h++)k=this.followers[h],
k.cb&&!k.cb.call(k.el,c,this)||k.el.attr(c);for(e in i)c[e]=i[e];return this};b.blur=function(a){if(+a!==0){var b=M("filter"),c=M("feGaussianBlur");this.attrs.blur=a;b.id=d.createUUID();M(c,{stdDeviation:+a||1.5});b.appendChild(c);this.paper.defs.appendChild(b);this._blur=b;M(this.node,{filter:"url('"+d._url+"#"+b.id+"')"})}else this._blur&&(this._blur.parentNode.removeChild(this._blur),delete this._blur,delete this.attrs.blur),this.node.removeAttribute("filter")};b.on=function(a,b){if(this.removed)return this;
var c=b;d._supportsTouch&&(a=d._touchMap[a]||a==="click"&&"touchstart"||a,c=function(a){a.preventDefault();b()});this.node["on"+a]=c;return this};d._engine.group=function(a,b,c){var d=M("g");c&&c.canvas&&c.canvas.appendChild(d)||a.canvas&&a.canvas.appendChild(d);a=new v(d,a,c);a.type="group";a.canvas=a.node;a.top=null;a.bottom=null;b&&d.setAttribute("class",["red",b,a.id].join("-"));return a};d._engine.circle=function(a,b,c,d,j){var e=M("circle");j&&j.canvas&&j.canvas.appendChild(e)||a.canvas&&a.canvas.appendChild(e);
a=new v(e,a,j);a.attrs={cx:b,cy:c,r:d,fill:"none",stroke:"#000"};a.type="circle";M(e,a.attrs);return a};d._engine.rect=function(a,b,c,d,j,e,h){var i=M("rect");h&&h.canvas&&h.canvas.appendChild(i)||a.canvas&&a.canvas.appendChild(i);a=new v(i,a,h);a.attrs={x:b,y:c,width:d,height:j,r:e||0,rx:e||0,ry:e||0,fill:"none",stroke:"#000"};a.type="rect";M(i,a.attrs);return a};d._engine.ellipse=function(a,b,c,d,j,e){var h=M("ellipse");e&&e.canvas&&e.canvas.appendChild(h)||a.canvas&&a.canvas.appendChild(h);a=new v(h,
a,e);a.attrs={cx:b,cy:c,rx:d,ry:j,fill:"none",stroke:"#000"};a.type="ellipse";M(h,a.attrs);return a};d._engine.image=function(a,b,c,d,j,e,h){var i=M("image");M(i,{x:c,y:d,width:j,height:e,preserveAspectRatio:"none"});i.setAttributeNS("http://www.w3.org/1999/xlink","href",b);h&&h.canvas&&h.canvas.appendChild(i)||a.canvas&&a.canvas.appendChild(i);a=new v(i,a,h);a.attrs={x:c,y:d,width:j,height:e,src:b};a.type="image";return a};d._engine.text=function(a,b,c,d,j){var e=M("text");j&&j.canvas&&j.canvas.appendChild(e)||
a.canvas&&a.canvas.appendChild(e);a=new v(e,a,j);a.attrs={x:b,y:c,"text-anchor":"middle","vertical-align":"middle",text:d,stroke:"none",fill:"#000"};a.type="text";a._textdirty=!0;K(a,a.attrs);return a};d._engine.setSize=function(a,b){this.width=a||this.width;this.height=b||this.height;this.canvas.setAttribute("width",this.width);this.canvas.setAttribute("height",this.height);this._viewBox&&this.setViewBox.apply(this,this._viewBox);return this};d._engine.create=function(){var a=d._getContainer.apply(0,
arguments),b=a&&a.container,c=a.x,j=a.y,e=a.width,a=a.height;if(!b)throw Error("SVG container not found.");var h=M("svg"),i,c=c||0,j=j||0,e=e||512,a=a||342;M(h,{height:a,version:1.1,width:e,xmlns:"http://www.w3.org/2000/svg"});b==1?(h.style.cssText="overflow:hidden;-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-user-select:none;-moz-user-select:-moz-none;-khtml-user-select:none;-ms-user-select:none;user-select:none;-o-user-select:none;cursor:default;position:absolute;left:"+c+"px;top:"+j+"px",
d._g.doc.body.appendChild(h),i=1):(h.style.cssText="overflow:hidden;-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-user-select:none;-moz-user-select:-moz-none;-khtml-user-select:none;-ms-user-select:none;user-select:none;-o-user-select:none;cursor:default;position:relative",b.firstChild?b.insertBefore(h,b.firstChild):b.appendChild(h));b=new d._Paper;b.width=e;b.height=a;b.canvas=h;b.clear();b._left=b._top=0;i&&(b.renderfix=function(){});b.renderfix();return b};d._engine.setViewBox=function(a,b,
c,d,j){L("raphael.setViewBox",this,this._viewBox,[a,b,c,d,j]);var e=l(c/this.width,d/this.height),h=this.top,i;a==null?(this._vbSize&&(e=1),delete this._vbSize,i="0 0 "+this.width+" "+this.height):(this._vbSize=e,i=a+" "+b+" "+c+" "+d);for(M(this.canvas,{viewBox:i,preserveAspectRatio:j?"meet":"xMinYMin"});e&&h;)i="stroke-width"in h.attrs?h.attrs["stroke-width"]:1,h.attr({"stroke-width":i}),h._.dirty=1,h._.dirtyT=1,h=h.prev;this._viewBox=[a,b,c,d,!!j];return this};d.prototype.renderfix=function(){var a=
this.canvas,b=a.style,c;try{c=a.getScreenCTM()||a.createSVGMatrix()}catch(d){c=a.createSVGMatrix()}a=-c.e%1;c=-c.f%1;if(a||c){if(a)this._left=(this._left+a)%1,b.left=this._left+"px";if(c)this._top=(this._top+c)%1,b.top=this._top+"px"}};d.prototype.clear=function(){L("raphael.clear",this);for(var a=this.canvas;a.firstChild;)a.removeChild(a.firstChild);this.bottom=this.top=null;(this.desc=M("desc")).appendChild(d._g.doc.createTextNode(d.is(d.desc,"string")&&d.desc||"Created with Red Rapha\u00ebl "+
d.version));a.appendChild(this.desc);a.appendChild(this.defs=M("defs"))};d.prototype.remove=function(){L("raphael.remove",this);this.canvas.parentNode&&this.canvas.parentNode.removeChild(this.canvas);for(var a in this)this[a]=typeof this[a]=="function"?d._removedFactory(a):null};var c=d.st,j;for(j in b)b.hasOwnProperty(j)&&!c.hasOwnProperty(j)&&(c[j]=function(a){return function(){var b=arguments;return this.forEach(function(c){c[a].apply(c,b)})}}(j))}(window.Raphael);window.Raphael.vml&&function(d){var h=
String,i=parseFloat,e=Math,k=e.round,l=e.max,q=e.min,D=e.abs,w=/[, ]+/,E=d.eve,H={M:"m",L:"l",C:"c",Z:"x",m:"t",l:"r",c:"v",z:"x"},L=/([clmz]),?([^clmz]*)/gi,B=/ progid:\S+Blur\([^\)]+\)/g,ia=/-?[^,\s-]+/g,P={path:1,rect:1,image:1},M={circle:1,ellipse:1},x=function(b){var c=/[ahqstv]/ig,j=d._pathToAbsolute;h(b).match(c)&&(j=d._path2curve);c=/[clmz]/g;if(j==d._pathToAbsolute&&!h(b).match(c))return(b=h(b).replace(L,function(a,b,c){var d=[],f=b.toLowerCase()=="m",j=H[b];c.replace(ia,function(a){f&&d.length==
2&&(j+=d+H[b=="m"?"l":"L"],d=[]);d.push(k(a*21600))});return j+d}))||"m0,0";for(var c=j(b),a,b=[],e=0,f=c.length;e<f;e++){j=c[e];a=c[e][0].toLowerCase();a=="z"&&(a="x");for(var i=1,l=j.length;i<l;i++)a+=k(j[i]*21600)+(i!=l-1?",":"");b.push(a)}return b.length?b.join(" "):"m0,0"},m=function(b,c,j){var a=d.matrix();a.rotate(-b,0.5,0.5);return{dx:a.x(c,j),dy:a.y(c,j)}},p=function(b,c,d,a,e,f){var h=b._,i=b.matrix,k=h.fillpos,b=b.node,l=b.style,v=1,p="",q=21600/c,y=21600/d;l.visibility="hidden";if(c&&
d){b.coordsize=D(q)+" "+D(y);l.rotation=f*(c*d<0?-1:1);if(f)e=m(f,a,e),a=e.dx,e=e.dy;c<0&&(p+="x");d<0&&(p+=" y")&&(v=-1);l.flip=p;b.coordorigin=a*-q+" "+e*-y;if(k||h.fillsize){a=(a=b.getElementsByTagName("fill"))&&a[0];b.removeChild(a);if(k)e=m(f,i.x(k[0],k[1]),i.y(k[0],k[1])),a.position=e.dx*v+" "+e.dy*v;if(h.fillsize)a.size=h.fillsize[0]*D(c)+" "+h.fillsize[1]*D(d);b.appendChild(a)}l.visibility="visible"}};d._url="";d.toString=function(){return"Your browser doesn\u2019t support SVG. Falling down to VML.\nYou are running Rapha\u00ebl "+
this.version};var R=function(b,c,d){for(var c=h(c).toLowerCase().split("-"),d=d?"end":"start",a=c.length,e="classic",f="medium",i="medium";a--;)switch(c[a]){case "block":case "classic":case "oval":case "diamond":case "open":case "none":e=c[a];break;case "wide":case "narrow":i=c[a];break;case "long":case "short":f=c[a]}b=b.node.getElementsByTagName("stroke")[0];b[d+"arrow"]=e;b[d+"arrowlength"]=f;b[d+"arrowwidth"]=i},Z=d._setFillAndStroke=function(b,c){if(b.paper.canvas){b.attrs=b.attrs||{};var j=
b.node,a=b.attrs,e=j.style,f=P[b.type]&&(c.x!=a.x||c.y!=a.y||c.width!=a.width||c.height!=a.height||c.cx!=a.cx||c.cy!=a.cy||c.rx!=a.rx||c.ry!=a.ry||c.r!=a.r),t=M[b.type]&&(a.cx!=c.cx||a.cy!=c.cy||a.r!=c.r||a.rx!=c.rx||a.ry!=c.ry),u=b.type==="group",m;for(m in c)c.hasOwnProperty(m)&&(a[m]=c[m]);if(f)a.path=d._getPath[b.type](b),b._.dirty=1;c.href&&(j.href=c.href);c.title&&(j.title=c.title);c.target&&(j.target=c.target);c.cursor&&(e.cursor=c.cursor);"blur"in c&&b.blur(c.blur);if(c.path&&b.type=="path"||
f)if(j.path=x(~h(a.path).toLowerCase().indexOf("r")?d._pathToAbsolute(a.path):a.path),b.type=="image")b._.fillpos=[a.x,a.y],b._.fillsize=[a.width,a.height],p(b,1,1,0,0,0);"transform"in c&&b.transform(c.transform);if("rotation"in c)e=c.rotation,d.is(e,"array")?b.rotate.apply(b,e):b.rotate(e);if("shape-rendering"in c)j.style.antialias=c["shape-rendering"]!=="crisp";"visibility"in c&&(c.visibility==="hidden"?b.hide():b.show());if(t)e=+a.cx,t=+a.cy,f=+a.rx||+a.r||0,m=+a.ry||+a.r||0,j.path=d.format("ar{0},{1},{2},{3},{4},{1},{4},{1}x",
k((e-f)*21600),k((t-m)*21600),k((e+f)*21600),k((t+m)*21600),k(e*21600));if("clip-rect"in c){e=h(c["clip-rect"]).split(w);if(e.length==4){e[0]=+e[0];e[1]=+e[1];e[2]=+e[2]+e[0];e[3]=+e[3]+e[1];f=u?j:j.clipRect||d._g.doc.createElement("div");t=f.style;if(u)b.clip=e.slice(),f=b.matrix.offset(),f=[i(f[0]),i(f[1])],e[0]-=f[0],e[1]-=f[1],e[2]-=f[0],e[3]-=f[1],t.width="10800px",t.height="10800px";else if(!j.clipRect)t.top="0",t.left="0",t.width=b.paper.width+"px",t.height=b.paper.height+"px",j.parentNode.insertBefore(f,
j),f.appendChild(j),j.clipRect=f;t.position="absolute";t.clip=d.format("rect({1}px {2}px {3}px {0}px)",e)}if(!c["clip-rect"])if(u&&b.clip)j.style.clip="rect(auto auto auto auto)",delete b.clip;else if(j.clipRect)j.clipRect.style.clip="rect(auto auto auto auto)"}if(b.textpath)u=b.textpath.style,c.font&&(u.font=c.font),c["font-family"]&&(u.fontFamily='"'+c["font-family"].split(",")[0].replace(/^['"]+|['"]+$/g,"")+'"'),c["font-size"]&&(u.fontSize=c["font-size"]),c["font-weight"]&&(u.fontWeight=c["font-weight"]),
c["font-style"]&&(u.fontStyle=c["font-style"]);"arrow-start"in c&&R(b,c["arrow-start"]);"arrow-end"in c&&R(b,c["arrow-end"],1);if(c.opacity!=null||c["stroke-width"]!=null||c.fill!=null||c.src!=null||c.stroke!=null||c["stroke-width"]!=null||c["stroke-opacity"]!=null||c["fill-opacity"]!=null||c["stroke-dasharray"]!=null||c["stroke-miterlimit"]!=null||c["stroke-linejoin"]!=null||c["stroke-linecap"]!=null){u=j.getElementsByTagName("fill");e=-1;u=u&&u[0];!u&&(u=K("fill"));if(b.type=="image"&&c.src)u.src=
c.src;c.fill&&(u.on=!0);if(u.on==null||c.fill=="none"||c.fill===null)u.on=!1;if(u.on&&c.fill)if(t=h(c.fill).match(d._ISURL))u.parentNode==j&&j.removeChild(u),u.rotate=!0,u.src=t[1],u.type="tile",f=b.getBBox(1),u.position=f.x+" "+f.y,b._.fillpos=[f.x,f.y],d._preload(t[1],function(){b._.fillsize=[this.offsetWidth,this.offsetHeight]});else if(t=d.getRGB(c.fill),u.color=t.hex,u.src="",u.type="solid",t.error&&(b.type in{circle:1,ellipse:1}||h(c.fill).charAt()!="r")&&O(b,c.fill,u))a.fill="none",a.gradient=
c.fill,u.rotate=!1;else if("opacity"in t&&!("fill-opacity"in c))e=t.opacity;if(e!==-1||"fill-opacity"in c||"opacity"in c)if(t=((+a["fill-opacity"]+1||2)-1)*((+a.opacity+1||2)-1)*((+e+1||2)-1),t=q(l(t,0),1),u.opacity=t,u.src)u.color="none";j.appendChild(u);u=j.getElementsByTagName("stroke")&&j.getElementsByTagName("stroke")[0];e=!1;!u&&(e=u=K("stroke"));if(c.stroke&&c.stroke!="none"||c["stroke-width"]||c["stroke-opacity"]!=null||c["stroke-dasharray"]||c["stroke-miterlimit"]||c["stroke-linejoin"]||
c["stroke-linecap"])u.on=!0;(c.stroke=="none"||c.stroke===null||u.on==null||c.stroke==0||c["stroke-width"]==0)&&(u.on=!1);t=d.getRGB("stroke"in c?c.stroke:a.stroke);u.on&&c.stroke&&(u.color=t.hex);t=((+a["stroke-opacity"]+1||2)-1)*((+a.opacity+1||2)-1)*((+t.opacity+1||2)-1);f=(i(c["stroke-width"])||1)*0.75;t=q(l(t,0),1);c["stroke-width"]==null&&(f=a["stroke-width"]);c["stroke-width"]&&(u.weight=f);f&&f<1&&(t*=f)&&(u.weight=1);u.opacity=t;c["stroke-linejoin"]&&(u.joinstyle=c["stroke-linejoin"])||e&&
(e.joinstyle="miter");u.miterlimit=c["stroke-miterlimit"]||8;c["stroke-linecap"]&&(u.endcap=c["stroke-linecap"]=="butt"?"flat":c["stroke-linecap"]=="square"?"square":"round");if(c["stroke-dasharray"])t={"-":"shortdash",".":"shortdot","-.":"shortdashdot","-..":"shortdashdotdot",". ":"dot","- ":"dash","--":"longdash","- .":"dashdot","--.":"longdashdot","--..":"longdashdotdot"},u.dashstyle=t.hasOwnProperty(c["stroke-dasharray"])?t[c["stroke-dasharray"]]:c["stroke-dasharray"].join&&c["stroke-dasharray"].join(" ")||
"";e&&j.appendChild(u)}if(b.type=="text"){b.paper.canvas.style.display="";j=b.paper.span;u=a.font&&a.font.match(/\d+(?:\.\d*)?(?=px)/);t=a["line-height"]&&(a["line-height"]+"").match(/\d+(?:\.\d*)?(?=px)/);e=j.style;a.font&&(e.font=a.font);a["font-family"]&&(e.fontFamily=a["font-family"]);a["font-weight"]&&(e.fontWeight=a["font-weight"]);a["font-style"]&&(e.fontStyle=a["font-style"]);u=i(a["font-size"]||u&&u[0])||10;e.fontSize=u*100+"px";t=i(a["line-height"]||t&&t[0])||12;a["line-height"]&&(e.lineHeight=
t*100+"px");b.textpath.string&&(j.innerHTML=h(b.textpath.string).replace(/</g,"&#60;").replace(/&/g,"&#38;").replace(/\n/g,"<br>"));j=j.getBoundingClientRect();b.W=a.w=(j.right-j.left)/100;b.H=a.h=(j.bottom-j.top)/100;b.X=a.x;b.Y=a.y;switch(a["vertical-align"]){case "top":b.bby=b.H/2;break;case "bottom":b.bby=-b.H/2;break;default:b.bby=0}("x"in c||"y"in c||b.bby!==void 0)&&(b.path.v=d.format("m{0},{1}l{2},{1}",k(a.x*21600),k((a.y+(b.bby||0))*21600),k(a.x*21600)+1));j=["x","y","text","font","font-family",
"font-weight","font-style","font-size","line-height"];u=0;for(e=j.length;u<e;u++)if(j[u]in c){b._.dirty=1;break}switch(a["text-anchor"]){case "start":b.textpath.style["v-text-align"]="left";b.bbx=b.W/2;break;case "end":b.textpath.style["v-text-align"]="right";b.bbx=-b.W/2;break;default:b.textpath.style["v-text-align"]="center",b.bbx=0}b.textpath.style["v-text-kern"]=!0}}},O=function(b,c,e){b.attrs=b.attrs||{};var a=Math.pow,g="linear",f=".5 .5";b.attrs.gradient=c;c=h(c).replace(d._radial_gradient,
function(b,c){g="radial";var c=c&&c.split(",")||[],d=c[3],e=c[4];d&&e&&(d=i(d),e=i(e),a(d-0.5,2)+a(e-0.5,2)>0.25&&(e=sqrt(0.25-a(d-0.5,2))*((e>0.5)*2-1)+0.5),f=d+" "+e);return""});c=c.split(/\s*\-\s*/);if(g=="linear"){var k=c.shift(),k=-i(k);if(isNaN(k))return null}c=d._parseDots(c);if(!c)return null;b=b.shape||b.node;if(c.length){b.removeChild(e);e.on=!0;e.method="none";e.color=c[0].color;e.color2=c[c.length-1].color;for(var l=[],m=1,v=c[0].opacity===void 0?1:c[0].opacity,p=0,q=c.length;p<q;p++)if(c[p].offset&&
l.push(c[p].offset+" "+c[p].color),c[p].opacity!==void 0)m=c[p].opacity;e.colors=l.length?l.join():"0% "+e.color;e.opacity=m;e["o:opacity2"]=v;g=="radial"?(e.type="gradientTitle",e.focus="100%",e.focussize="0 0",e.focusposition=f,e.angle=0):(e.type="gradient",e.angle=(270-k)%360);b.appendChild(e)}return 1},X=function(b,c,e){e=e||c;this.node=this[0]=b;b.raphael=!0;b.raphaelid=this.id=d._oid++;this.Y=this.X=0;this.attrs=this.attrs||{};this.styles=this.styles||{};this.followers=this.followers||[];this.paper=
c;this.ca=this.customAttributes=this.customAttributes||new c._CustomAttributes;this.matrix=d.matrix();this._={transform:[],sx:1,sy:1,dx:0,dy:0,deg:0,dirty:1,dirtyT:1};this.parent=e;!e.bottom&&(e.bottom=this);(this.prev=e.top)&&(e.top.next=this);e.top=this;this.next=null},e=d.el;X.prototype=e;e.constructor=X;e.transform=function(b){if(b==null)return this._.transform;var c=this.paper._viewBoxShift,e=c?"s"+[c.scale,c.scale]+"-1-1t"+[c.dx,c.dy]:"",a;c&&(a=b=h(b).replace(/\.{3}|\u2026/g,this._.transform||
""));d._extractTransform(this,e+b);var c=this.matrix.clone(),g=this.skew,b=this.node,e=~h(this.attrs.fill).indexOf("-"),f=!h(this.attrs.fill).indexOf("url(");c.translate(-0.5,-0.5);f||e||this.type=="image"?(g.matrix="1 0 0 1",g.offset="0 0",g=c.split(),e&&g.noRotation||!g.isSimple?(b.style.filter=c.toFilter(),c=this.getBBox(),e=this.getBBox(1),f=c.x2&&e.x2&&"x2"||"x",g=c.y2&&e.y2&&"y2"||"y",f=c[f]-e[f],c=c[g]-e[g],b.coordorigin=f*-21600+" "+c*-21600,p(this,1,1,f,c,0)):(b.style.filter="",p(this,g.scalex,
g.scaley,g.dx,g.dy,g.rotate))):(b.style.filter="",g.matrix=h(c),g.offset=c.offset());a&&(this._.transform=a);return this};e.rotate=function(b,c,d){if(this.removed)return this;if(b!=null){b=h(b).split(w);b.length-1&&(c=i(b[1]),d=i(b[2]));b=i(b[0]);d==null&&(c=d);if(c==null||d==null)d=this.getBBox(1),c=d.x+d.width/2,d=d.y+d.height/2;this._.dirtyT=1;this.transform(this._.transform.concat([["r",b,c,d]]));return this}};e.translate=function(b,c){if(this.removed)return this;b=h(b).split(w);b.length-1&&(c=
i(b[1]));b=i(b[0])||0;c=+c||0;this._.bbox&&(this._.bbox.x+=b,this._.bbox.y+=c);this.transform(this._.transform.concat([["t",b,c]]));return this};e.scale=function(b,c,d,a){if(this.removed)return this;b=h(b).split(w);b.length-1&&(c=i(b[1]),d=i(b[2]),a=i(b[3]),isNaN(d)&&(d=null),isNaN(a)&&(a=null));b=i(b[0]);c==null&&(c=b);a==null&&(d=a);if(d==null||a==null)var e=this.getBBox(1);d=d==null?e.x+e.width/2:d;a=a==null?e.y+e.height/2:a;this.transform(this._.transform.concat([["s",b,c,d,a]]));this._.dirtyT=
1;return this};e.hide=function(){!this.removed&&(this.node.style.display="none");return this};e.show=function(){!this.removed&&(this.node.style.display="");return this};e._getBBox=function(){if(this.removed)return{};return{x:this.X+(this.bbx||0)-this.W/2,y:this.Y+(this.bby||0)-this.H/2,width:this.W,height:this.H}};e.remove=function(){if(!this.removed&&this.parent.canvas){var b,c=d._engine.getNode(this);this.paper.__set__&&this.paper.__set__.exclude(this);for(E.unbind("raphael.*.*."+this.id);b=this.followers.pop();)b.el.remove();
this.shape&&this.shape.parentNode.removeChild(this.shape);c.parentNode.removeChild(c);d._tear(this,this.paper);for(b in this)this[b]=typeof this[b]=="function"?d._removedFactory(b):null;this.removed=!0}};e.css=function(b,c){if(this.removed)return this;if(c==null&&d.is(b,"string")){for(var e=b.split(w),a={},g=0,f=e.length;g<f;g++)b=e[g],b in this.styles&&(a[b]=this.styles[b]);return f-1?a:a[e[0]]}if(c==null&&d.is(b,"array")){a={};g=0;for(f=b.length;g<f;g++)a[b[g]]=this.styles(b[g]);return a}c!=null?
(e={},e[b]=c):b!=null&&d.is(b,"object")&&(e=b);a={};for(f in e)g=f.replace(/\B([A-Z]{1})/g,"-$1").toLowerCase(),g==="color"&&this.type==="text"&&(g="fill"),d._availableAttrs.hasOwnProperty(g)?(a[g]=e[f],a.dirty=!0):(E("raphael.css."+g+"."+this.id,this,e[f],g),e[f]!=void 0&&(this.node.style[g]=e[f]),this.styles[g]=e[f]);g=0;for(f=this.followers.length;g<f;g++)this.followers[g].el.css(e);a.hasOwnProperty("dirty")&&(delete a.dirty,this.attr(a));return this};e.attr=function(b,c){if(this.removed)return this;
if(b==null){var e={},a;for(a in this.attrs)this.attrs.hasOwnProperty(a)&&(e[a]=this.attrs[a]);e.gradient&&e.fill=="none"&&(e.fill=e.gradient)&&delete e.gradient;e.transform=this._.transform;e.visibility=this.node.style.display==="none"?"hidden":"visible";return e}if(c==null&&d.is(b,"string")){if(b=="fill"&&this.attrs.fill=="none"&&this.attrs.gradient)return this.attrs.gradient;if(b=="visibility")return this.node.style.display==="none"?"hidden":"visible";var e=b.split(w),g={},f=0;for(a=e.length;f<
a;f++)b=e[f],g[b]=b in this.attrs?this.attrs[b]:d.is(this.ca[b],"function")?this.ca[b].def:d._availableAttrs[b];return a-1?g:g[e[0]]}if(this.attrs&&c==null&&d.is(b,"array")){g={};f=0;for(a=b.length;f<a;f++)g[b[f]]=this.attr(b[f]);return g}c!=null&&(e={},e[b]=c);c==null&&d.is(b,"object")&&(e=b);for(f in e)E("raphael.attr."+f+"."+this.id,this,e[f],f);if(e){var h={};for(f in this.ca)if(this.ca[f]&&e.hasOwnProperty(f)&&d.is(this.ca[f],"function")&&!this.ca["_invoked"+f]){this.ca["_invoked"+f]=!0;a=this.ca[f].apply(this,
[].concat(e[f]));delete this.ca["_invoked"+f];for(g in a)a.hasOwnProperty(g)&&(e[g]=a[g]);this.attrs[f]=e[f];a===!1&&(h[f]=e[f],delete e[f])}if("text"in e&&this.type=="text")this.textpath.string=e.text.replace(/<br\s*?\/?>/ig,"\n");Z(this,e);var i,f=0;for(a=this.followers.length;f<a;f++)i=this.followers[f],i.cb&&!i.cb.call(i.el,e,this)||i.el.attr(e);for(g in h)e[g]=h[g]}return this};e.blur=function(b){var c=this.node.runtimeStyle,e=c.filter,e=e.replace(B,"");+b!==0?(this.attrs.blur=b,c.filter=e+"  progid:DXImageTransform.Microsoft.Blur(pixelradius="+
(+b||1.5)+")",c.margin=d.format("-{0}px 0 0 -{0}px",k(+b||1.5))):(c.filter=e,c.margin=0,delete this.attrs.blur);return this};e.on=function(b,c){if(this.removed)return this;this.node["on"+b]=function(){var b=d._g.win.event;b.target=b.srcElement;c(b)};return this};d._engine.getNode=function(b){b=b.node||b[0].node;return b.clipRect||b};d._engine.getLastNode=function(b){b=b.node||b[b.length-1].node;return b.clipRect||b};d._engine.group=function(b,c,e){var a=d._g.doc.createElement("div"),g=new X(a,b,e);
a.style.cssText="position:absolute;left:0;top:0;width:1px;height:1px";c&&(a.className=["red",c,g.id].join("-"));(e||b).canvas.appendChild(a);g.type="group";g.canvas=g.node;g.transform=d._engine.group.transform;g.top=null;g.bottom=null;return g};d._engine.group.transform=function(b){if(b==null)return this._.transform;var c=this.node.style,e=this.clip,a=this.paper._viewBoxShift,g=a?"s"+[a.scale,a.scale]+"-1-1t"+[a.dx,a.dy]:"";a&&(b=h(b).replace(/\.{3}|\u2026/g,this._.transform||""));d._extractTransform(this,
g+b);b=this.matrix;g=b.offset();a=i(g[0])||0;g=i(g[1])||0;c.left=a+"px";c.top=g+"px";c.zoom=(this._.tzoom=b.get(0))+"";e&&(c.clip=d.format("rect({1}px {2}px {3}px {0}px)",[e[0]-a,e[1]-g,e[2]-a,e[3]-g]));return this};d._engine.path=function(b,c,d){var a=K("shape");a.style.cssText="position:absolute;left:0;top:0;width:1px;height:1px";a.coordsize="21600 21600";a.coordorigin=c.coordorigin;var e=new X(a,c,d),f={fill:"none",stroke:"#000"};b&&(f.path=b);e.type="path";e.path=[];e.Path="";Z(e,f);(d||c).canvas.appendChild(a);
b=K("skew");b.on=!0;a.appendChild(b);e.skew=b;return e};d._engine.rect=function(b,c,e,a,g,f,h){var i=d._rectPath(c,e,a,g,f),b=b.path(i,h),h=b.attrs;b.X=h.x=c;b.Y=h.y=e;b.W=h.width=a;b.H=h.height=g;h.r=f;h.path=i;b.type="rect";return b};d._engine.ellipse=function(b,c,d,a,e,f){b=b.path(void 0,f);b.X=c-a;b.Y=d-e;b.W=a*2;b.H=e*2;b.type="ellipse";Z(b,{cx:c,cy:d,rx:a,ry:e});return b};d._engine.circle=function(b,c,d,a,e){b=b.path(void 0,e);b.X=c-a;b.Y=d-a;b.W=b.H=a*2;b.type="circle";Z(b,{cx:c,cy:d,r:a});
return b};d._engine.image=function(b,c,e,a,g,f,h){var i=d._rectPath(e,a,g,f),b=b.path(i,h).attr({stroke:"none"}),h=b.attrs,k=b.node,l=k.getElementsByTagName("fill")[0];h.src=c;b.X=h.x=e;b.Y=h.y=a;b.W=h.width=g;b.H=h.height=f;h.path=i;b.type="image";l.parentNode==k&&k.removeChild(l);l.rotate=!0;l.src=c;l.type="tile";b._.fillpos=[e,a];b._.fillsize=[g,f];k.appendChild(l);p(b,1,1,0,0,0);return b};d._engine.text=function(b,c,e,a,g){var f=K("shape"),i=K("path"),l=K("textpath"),c=c||0,e=e||0;i.v=d.format("m{0},{1}l{2},{1}",
k(c*21600),k(e*21600),k(c*21600)+1);i.textpathok=!0;l.string=h(a).replace(/<br\s*?\/?>/ig,"\n");l.on=!0;f.style.cssText="position:absolute;left:0;top:0;width:1px;height:1px";f.coordsize="21600 21600";f.coordorigin="0 0";var m=new X(f,b,g),p={fill:"#000",stroke:"none",text:a};m.shape=f;m.path=i;m.textpath=l;m.type="text";m.attrs.text=h(a||"");m.attrs.x=c;m.attrs.y=e;m.attrs.w=1;m.attrs.h=1;Z(m,p);f.appendChild(l);f.appendChild(i);(g||b).canvas.appendChild(f);b=K("skew");b.on=!0;f.appendChild(b);m.skew=
b;return m};d._engine.setSize=function(b,c){var e=this.canvas.style;this.width=b;this.height=c;b==+b&&(b+="px");c==+c&&(c+="px");e.width=b;e.height=c;e.clip="rect(0 "+b+" "+c+" 0)";this._viewBox&&d._engine.setViewBox.apply(this,this._viewBox);return this};d._engine.setViewBox=function(b,c,d,a,e){E("raphael.setViewBox",this,this._viewBox,[b,c,d,a,e]);var f=this.width,h=this.height,i=1/l(d/f,a/h),k,m;e&&(k=h/a,m=f/d,d*k<f&&(b-=(f-d*k)/2/k),a*m<h&&(c-=(h-a*m)/2/m));this._viewBox=[b,c,d,a,!!e];this._viewBoxShift=
{dx:-b,dy:-c,scale:i};this.forEach(function(a){a.transform("...")});return this};var K;d._engine.initWin=function(b){var c=b.document;c.createStyleSheet().addRule(".rvml","behavior:url(#default#VML)");try{!c.namespaces.rvml&&c.namespaces.add("rvml","urn:schemas-microsoft-com:vml"),K=d._createNode=function(a,b){var d=c.createElement("<rvml:"+a+' class="rvml">'),e;for(e in b)d[e]=h(b[e]);return d}}catch(e){K=d._createNode=function(a,b){var d=c.createElement("<"+a+' xmlns="urn:schemas-microsoft.com:vml" class="rvml">'),
e;for(e in b)d[e]=h(b[e]);return d}}};d._engine.initWin(d._g.win);d._engine.create=function(){var b=d._getContainer.apply(0,arguments),c=b.container,e=b.height,a=b.width,g=b.x,b=b.y;if(!c)throw Error("VML container not found.");var f=new d._Paper,h=f.canvas=d._g.doc.createElement("div"),i=h.style,g=g||0,b=b||0,a=a||512,e=e||342;f.width=a;f.height=e;a==+a&&(a+="px");e==+e&&(e+="px");f.coordsize="21600000 21600000";f.coordorigin="0 0";f.span=d._g.doc.createElement("span");f.span.style.cssText="position:absolute;left:-9999em;top:-9999em;padding:0;margin:0;line-height:1;";
h.appendChild(f.span);i.cssText=d.format("top:0;left:0;width:{0};height:{1};display:inline-block;cursor:default;position:relative;clip:rect(0 {0} {1} 0);overflow:hidden",a,e);c==1?(d._g.doc.body.appendChild(h),i.left=g+"px",i.top=b+"px",i.position="absolute"):c.firstChild?c.insertBefore(h,c.firstChild):c.appendChild(h);f.renderfix=function(){};return f};d.prototype.clear=function(){E("raphael.clear",this);this.canvas.innerHTML="";this.span=d._g.doc.createElement("span");this.span.style.cssText="position:absolute;left:-9999em;top:-9999em;padding:0;margin:0;line-height:1;display:inline;";
this.canvas.appendChild(this.span);this.bottom=this.top=null};d.prototype.remove=function(){E("raphael.remove",this);this.canvas.parentNode.removeChild(this.canvas);for(var b in this)this[b]=typeof this[b]=="function"?d._removedFactory(b):null;return!0};var y=d.st,v;for(v in e)e.hasOwnProperty(v)&&!y.hasOwnProperty(v)&&(y[v]=function(b){return function(){var c=arguments;return this.forEach(function(d){d[b].apply(d,c)})}}(v))}(window.Raphael);i.Raphael=q;i.Raphael.desc="framework "+this.core.version.join(".");
if(w&&w!==q)window.Raphael=w;else if(window.Raphael===q)window.Raphael=void 0}]);
FusionCharts(["private","modules.renderer.js-raphaelshadow",function(){var i=this.hcLib,l=window,w=l.navigator.userAgent,q=l.parseFloat,d=l.parseInt;/AppleWebKit/.test(w);/Safari/.test(w)&&/Version\/[1-4]\./.test(w);/Chrome/.test(w);/msie/i.test(w);var h=i.Raphael,aa;if(h.svg){var e={"drop-shadow":"drop-shadow",stroke:"stroke",fill:"fill","stroke-width":"stroke-width","stroke-opacity":"stroke-opacity","stroke-linecap":"stroke-linecap","shape-rendering":"shape-rendering",transform:"transform"};aa=
function(d,h){var i=this.__shadowscale,l={},q,w;for(w in d)switch(e[w]&&(l[w]=d[w],delete d[w]),w){case "transform":q=h.matrix.clone();q.translate(this.__shadowx,this.__shadowy);this.transform(q.toTransformString());break;case "stroke-width":d[w]=((l[w]||1)+6-2*this.__shadowlevel)*i}this.attr(d);for(w in l)d[w]=l[w]};h.ca["drop-shadow"]=function(e,i,l,q,w,E){var l=this._.shadows||(this._.shadows=[]),H,L,B,ia,P;if(!this.__shadowblocked)if(e==="none")for(;L=l.pop();)L.remove();else{q=h.color(q);q.error&&
(q=h.color("rgba(0,0,0,1)"));w instanceof Array?(H=w[0],w=w[1]):H=w;H=1/h.pick(H,1);w=1/h.pick(w,1);e=h.pick(e,1)*H;i=h.pick(i,1)*H;H=h.pick(q.opacity,1)*0.05;B=d(this.attr("stroke-width")||1,10)+6;ia=this.matrix.clone();ia.translate(e,i);for(P=1;P<=3;P++)L=(l[P-1]||this.clone().follow(this,aa,!E&&"before")).attr({stroke:q.hex,"stroke-opacity":H*P,"stroke-width":(B-2*P)*w,transform:ia.toTransformString(),"stroke-linecap":"round","shape-rendering":"default",fill:"none"}),L.__shadowlevel=P,L.__shadowscale=
w,L.__shadowx=e,L.__shadowy=i,E&&E.appendChild(L),l.push(L)}return!1};h.el.shadow=function(d,e,i,l){i&&i.constructor===h.el.constructor&&(l=i,i=void 0);if(typeof d==="object")e&&e.constructor===h.el.constructor&&(l=e),e=d.opacity,i=d.scalefactor,d=d.apply===void 0?!!e:d.apply;e===void 0&&(e=1);return this.attr("drop-shadow",d?[1,1,3,"rgba(64,64,64,"+e+")",i,l]:"none")}}else if(h.vml)h.ca["drop-shadow"]=function(d,e,i,l,w,E){var H=this._.shadow,L,B;if(this.isShadow)return!1;if(d==="none")H&&(this._.shadow=
H.remove());else{if(!H)H=this._.shadow=this.clone(),E&&E.appendChild(H.follow(this))||H.follow(this,void 0,"before"),H.attr({fill:"none","fill-opacity":0.5,"stroke-opacity":1}).isShadow=!0,H.attr("stroke-width")<=0&&H.attr("stroke-width",1);E=H.node.runtimeStyle;L=E.filter.replace(/ progid:\S+Blur\([^\)]+\)/g,"");l=h.color(l);l.error&&(l=h.color("rgba(0,0,0,1)"));B=h.pick(l.opacity,1)/5;w=1/h.pick(w,1);d=h.pick(d,1)*w;e=h.pick(e,1)*w;H.translate(d,e);E.filter=L+" progid:DXImageTransform.Microsoft.Blur(pixelRadius="+
q(i*0.4)+" makeShadow=True Color="+l.hex+" shadowOpacity='"+B+"');"}return!1},h.el.shadow=function(d,e,i,l){i&&i.constructor===h.el.constructor&&(l=i,i=void 0);if(typeof d==="object")e&&e.type==="group"&&(l=e),e=d.opacity,i=d.scalefactor,d=d.apply===void 0?!!e:d.apply;e===void 0&&(e=1);return this.attr("drop-shadow",d||!e?[1,1,5,"rgba(64,64,64,"+e+")",i,l]:"none")};else if(h.canvas)h.el.shadow=function(){return this}}]);
FusionCharts(["private","modules.renderer.js-raphaelshapes",function(){var i=this.hcLib.Raphael,l="createTouch"in document,w=window,w=/msie/i.test(navigator.userAgent)&&!w.opera,q=Math,d=q.cos,h=q.sin,aa=q.abs,e=q.pow,k=q.atan2,r=q.min,ha=q.round,D=q.PI,ba=2*D,E=parseInt,H=parseFloat,L=String,B=e(2,-24),ia="rgba(192,192,192,"+(w?0.0020:1.0E-6)+")",P=i.eve,M=i.vml&&0.5||0,x=i._createNode,m=i._setFillAndStroke,p=i.el.constructor;i.crispBound=i._cacher(function(b,c,d,a,e){var f={},h,b=b||0,c=c||0,d=
d||0,a=a||0,e=e||0;h=e%2/2+M;f.x=ha(b+h)-h;f.y=ha(c+h)-h;f.width=ha(b+d+h)-h-f.x;f.height=ha(c+a+h)-h-f.y;f["stroke-width"]=e;f.width===0&&d!==0&&(f.width=1);f.height===0&&a!==0&&(f.height=1);return f},i);i.el.crisp=function(){var b=this.attrs,c,d=this.attr(["x","y","width","height","stroke-width"]),d=i.crispBound(d.x,d.y,d.width,d.height,d["stroke-width"]);for(c in d)b[c]===d[c]&&delete d[c];return this.attr(d)};i.fn.polypath=function(){var b=arguments,c=b.length-1,d=b[c];d&&d.constructor===i.el.constructor?
b[c]=void 0:d=void 0;c=this.path(void 0,d);c.ca.polypath=i.fn.polypath.ca;arguments.length-!!d&&c.attr("polypath",[b[0],b[1],b[2],b[3],b[4],b[5]])||(c.attrs.polypath=[0,0,0,0,0,0]);return c};i.fn.polypath.ca=function(b,c,e,a,g,f){var k,l,m;k=[];b=E(b,10)||0;c=H(c)||0;e=H(e)||0;a=H(a)||0;g=g===null||isNaN(g)?D*0.5:i.rad(g);f=f===null||isNaN(f)?0:H(f);l=g;if(b>2)switch(g=2*D/b,f){case 0:for(f=0;f<b;f++)k.push("L",c+a*d(-l),e+a*h(-l)),l+=g;k[0]="M";k.push("Z");break;case 1:for(f=0;f<b;f++)k.push("M",
c,e,"L",c+a*d(-l),e+a*h(-l)),l+=g;break;default:g*=0.5;m=a*d(g)*(1-f);for(f=0;f<b;f++)k.push("L",c+a*d(-l),e+a*h(-l)),l+=g,k.push("L",c+m*d(-l),e+m*h(-l)),l+=g;k[0]="M";k.push("Z")}else a===0?k.push("M",c,e,"L",c,e,"Z"):k.push("M",c-a,e,"A",a,a,0,0,0,c+a,e,"A",a,a,0,0,0,c-a,e,"Z");return{path:k}};i.fn.ringpath=function(){var b=arguments,c=b.length-1,d=b[c];d&&d.constructor===i.el.constructor?b[c]=void 0:d=void 0;c=this.path(void 0,d);c.ca.ringpath=i.fn.ringpath.ca;arguments.length-!!d&&c.attr("ringpath",
[b[0],b[1],b[2],b[3],b[4],b[5]])||(c.attrs.ringpath=[0,0,0,0,0,0]);return c};i.fn.ringpath.ca=function(b,c,e,a,g,f){var i=f%ba-g%ba,k,l;this._.ringangle=(g+f)*0.5;g===f?(k=d(g),g=h(g),e=["M",b+e*k,c+e*g,"Z"]):(aa(i%=ba)<B?(e=["M",b-e,c,"A",e,e,0,0,0,b+e,c,"A",e,e,0,0,0,b-e,c],a!==0&&(e=e.concat(["M",b-a,c,"A",a,a,0,0,1,b+a,c,"A",a,a,0,0,1,b-a,c]))):(k=d(g),g=h(g),l=d(f),f=h(f),i<0&&(i+=ba),i=i<D?0:1,e=["M",b+e*k,c+e*g,"A",e,e,0,i,1,b+e*l,c+e*f,"L",b+a*l,c+a*f],a!==0&&e.push("A",a,a,0,i,0,b+a*k,c+
a*g)),e.push("Z"));return{path:e}};i.fn.cubepath=function(){var b={"stroke-linejoin":"round","shape-rendering":"precision",stroke:"none"},c=arguments,d=c.length-1,a=c[d],e;a&&a.constructor===i.el.constructor?c[d]=void 0:a=void 0;d=this.path(void 0,a).attr(b);e=this.path(void 0,a).attr(b);b=this.path(void 0,a).attr(b);b._.cubetop=d.follow(b,void 0,"before");b._.cubeside=e.follow(b,void 0,"before");for(var f in i.fn.cubepath.ca)b.ca[f]=i.fn.cubepath.ca[f];return b.attr("cubepath",[c[0]||0,c[1]||0,c[2]||
0,c[3]||0,c[4]||0,c[5]||0])};i.fn.cubepath.ca={cubepath:function(b,c,d,a,e,f){var h=this._.cubetop,i=this._.cubeside;this.attr("path",["M",b+d,c,"l",0,a,-d,0,0,-a,"z"]);h.attr("path",["M",b,c,"l",1,1,d-1,0,0,-1,e,-f,-d,0,"z"]);i.attr("path",["M",b+d-1,c+1,"l",0,a-1,1,0,e,-f,0,-a,-e,f]);return!1},"stroke-linejoin":function(){return{"stroke-linejoin":"round"}},"drop-shadow":function(){return!1},fill:function(b,c){var d=this._.cubetop,a=this._.cubeside,e=this.attr("cubepath")||[0,0,0,0,0,0],f=e[2],h=
e[3],l=e[4],e=e[5],m,b=i.color(b);c?(f=b.h,h=b.s,m=(m=b.v)<=0.2?0.2:m,l=i.pick(b.opacity,1),this.attr("fill",b),d.attr("fill","hsba("+[f,h,m-0.1,l].join(",")+")"),a.attr("fill","hsba("+[f,h,m-0.2,l].join(",")+")")):(m="opacity"in b?"rgba("+[b.r,b.g,b.b,b.opacity]+")":"rgb("+[b.r,b.g,b.b]+")",this.attr("fill",["285",i.tintshade(m,0.45).rgba,i.tintshade(m,-0.65).rgba].join("-")),a.attr("fill",[50+i.deg(k(h+e,l)),i.tintshade(m,-0.45).rgba,i.tintshade(m,-0.75).rgba].join("-")),d.attr("fill",[i.deg(k(e,
l+f)),i.tintshade(m,-0.85).rgba,i.tintshade(m,0.35).rgba].join("-")));return!1}};i.ca["text-bound"]=function(b,c,e,a,d,f){var a=this.paper,h=this._.textbound;if(this.type==="text"){if((!c||c==="none")&&(!b||b==="none"))return this._.textbound=h&&h.unfollow(this).remove(),!1;(!e||!i.is(e,"finite"))&&(e=0);(!d||!i.is(d,"finite"))&&(d=0);!h&&(h=this._.textbound=a.rect(0,0,0,0,this.group).follow(this,i.ca["text-bound"].reposition,"before"));h.attr({stroke:c,"stroke-width":e,fill:b,"shape-rendering":e===
1&&"crisp"||"",r:d});f&&h.attr("stroke-dasharray",f);i.ca["text-bound"].reposition.call(h,this.attrs,this);return!1}};i.ca["text-bound"].reposition=function(b,c){var e={},a,d,f,h,k;b.hasOwnProperty("visibility")&&this.attr("visibility",b.visibility);if(b.hasOwnProperty("text-bound")||b.hasOwnProperty("x")||b.hasOwnProperty("y")||b.hasOwnProperty("text")||b.hasOwnProperty("text-anchor")||b.hasOwnProperty("text-align")||b.hasOwnProperty("font-size")||b.hasOwnProperty("line-height")||b.hasOwnProperty("vertical-align")||
b.hasOwnProperty("transform")){a=L((c.attrs["text-bound"]||[])[3]||"0").split(/\s*\,\s*/g);d=H(a[0])||0;a=i.pick(H(a[1]),d);f=c.getBBox();h=f.width;k=f.height;if(!isNaN(h))e.x=f.x-d,e.y=f.y-a,e.width=h+d*2,e.height=k+a*2;this.attr(e)}};i.fn.scroller=function(b,c,e,a,d,f,h){var k=this.group("scroller",h),l=k.attrs,m=k._.scroller={},d=d&&"horizontal"||"vertical",p,q={},v,y;m.track=this.rect(k).mousedown(function(a){var b=l["scroll-position"],a=l["scroll-orientation"]==="horizontal"?a.layerX||a.x:a.layerY||
a.y,a=(a-m.anchorOffset)/m.trackLength;p=i.animation({"scroll-position":a},2E3*aa(b-a),"easeIn");k.animate(p);P("raphael.scroll.start."+k.id,k,b)}).mouseup(function(){this.stop(p);P("raphael.scroll.end."+this.id,this,l["scroll-position"])},k,!0);m.anchor=this.rect(k).drag(function(){q["scroll-position"]=v+arguments[y]/m.trackLength;k.animate(q,0)},function(a,b,c){y=l["scroll-orientation"]==="horizontal"?0:1;P("raphael.scroll.start."+k.id,k,v=l["scroll-position"]);c.stopPropagation()},function(){P("raphael.scroll.end."+
k.id,k,v=l["scroll-position"])});for(var x in i.fn.scroller.fn)k[x]=i.fn.scroller.fn[x];for(x in i.fn.scroller.ca)k.ca[x]=i.fn.scroller.ca[x];l["scroll-orientation"]=d;k.ca["scroll-repaint"]=k.ca["scroll-repaint-"+d];!i.is(f,"object")&&(f={});return k.attr({ishot:!0,"scroll-display-buttons":f.showButtons&&"arrow"||"none","scroll-display-style":f.displayStyleFlat&&"flat"||"3d","scroll-ratio":H(f.scrollRatio)||1,"scroll-position":H(f.scrollPosition)||0,"scroll-repaint":[b,c,e,a]})};i.fn.scroller.fn=
{scroll:function(b,c){var d=this._.scroller,c=c||this;d.callback=function(){return b.apply(c,arguments)};return this}};i.fn.scroller.ca={"scroll-display-style":function(b){var c=this.attrs,d=c["scroll-display-style"],a=c.fill,b={flat:"flat","3d":"3d"}[b]||d;a&&b!==d&&(c["scroll-display-style"]=b,this.attr("fill",a));return{"scroll-display-style":b}},"scroll-display-buttons":function(b){var c=this,d=c.paper,a=c._.scroller,e=c.attrs,f=e["scroll-display-buttons"],h=e["scroll-repaint"],k,l,b={none:"none",
arrow:"arrow"}[b]||f;if(b!==f)e["scroll-display-buttons"]=b,b==="none"&&a.start?(a.arrowstart.remove(),delete a.arrowstart,a.arrowend.remove(),delete a.arrowend,a.start.remove(),delete a.start,a.end.remove(),delete a.end):(a.arrowstart=d.polypath(c),a.arrowend=d.polypath(c),a.start=d.rect(c).mousedown(function(){var a;if((a=e["scroll-position"])!==0)c.animate({"scroll-position":a-0.1},100).animate(k=i.animation({"scroll-position":0},4500*a,"easeIn")),P("raphael.scroll.start."+c.id,c,a)}).mouseup(function(){c.stop(k);
P("raphael.scroll.end."+c.id,c,e["scroll-position"])},c,!0),a.end=d.rect(c).mousedown(function(){var a;if((a=e["scroll-position"])!==1)c.animate({"scroll-position":a+0.1},100).animate(l=i.animation({"scroll-position":1},4500*(1-a),"easeIn")),P("raphael.scroll.start."+c.id,c,a)}).mouseup(function(){c.stop(l);P("raphael.scroll.end."+c.id,c,e["scroll-position"])},c,!0),e.fill&&c.attr("fill",e.fill)),h&&c.attr("scroll-repaint",h);return{"scroll-display-buttons":b}},"scroll-orientation":function(b){var c=
this.attrs,d=c["scroll-repaint"],a=c["scroll-orientation"],b={horizontal:"horizontal",vertical:"vertical"}[b]||a;a!==b&&(this.ca["scroll-repaint"]=this.ca["scroll-repaint-"+b],d&&(d[2]+=d[3],d[3]=d[2]-d[3],d[2]-=d[3],this.attr("scroll-repaint",d)),c.fill&&this.attr("fill",c.fill));return{"scroll-orientation":b}},"scroll-ratio":function(b){var c=this.attrs,d=c["scroll-ratio"],a=c["scroll-repaint"],b=b>1?1:b<0.01?0.01:H(b);a&&b!==d&&(c["scroll-ratio"]=b,this.attr("scroll-repaint",a));return{"scroll-ratio":b}},
"scroll-position":function(b,c){var d=this.attrs,a=d["scroll-orientation"]==="horizontal",e=d["scroll-repaint"],f=d["scroll-position"],h=this._.scroller,i=h.anchor,b=b>1?1:b<0?0:H(b);isNaN(b)&&(b=f);if(e&&(f!==b||c))f=h.start&&h.start.attr(a&&"width"||"height")||0,a&&i.attr("x",e[0]+f+(e[2]-2*f-i.attr("width")+1)*b+0.5)||i.attr("y",e[1]+f+(e[3]-2*f-i.attr("height")+1)*b+0.5),!c&&d["scroll-ratio"]<1&&(P("raphael.scroll.change."+this.id,this,b),h.callback&&h.callback(b));return{"scroll-position":b}},
"scroll-repaint-horizontal":function(b,c,d,a){var e=this.attrs,f=this._.scroller,h=e["scroll-ratio"],i=e["scroll-position"],k=0,l=d*h;f.track.attr({width:d,height:a,y:c,x:b,r:2});e["scroll-display-buttons"]!=="none"&&(k=r(a,d*0.5),l-=k*2*h,f.start.attr({width:k,height:a,x:b,y:c}),f.arrowstart.attr("polypath",[3,b+k*0.5,c+a*0.5,k*0.25,180]),f.end.attr({width:k,height:a,x:b+d-k,y:c}),f.arrowend.attr("polypath",[3,b+d-k*0.5,c+k*0.5,k*0.25,0]));f.trackLength=d-2*k-l;f.trackOffset=b+k+0.5;f.anchorOffset=
f.trackOffset+(l-1)*0.5;f.anchor.attr({height:a-1,width:l-1,y:c+0.5,x:f.trackOffset+f.trackLength*i,r:2})},"scroll-repaint-vertical":function(b,c,d,a){var e=this.attrs,f=this._.scroller,h=e["scroll-ratio"],i=e["scroll-position"],k=0,l=a*h;f.track.attr({width:d,height:a,y:c,x:b});e["scroll-display-buttons"]!=="none"&&(k=r(d,a*0.5),l-=k*2*h,f.start.attr({width:d,height:k,x:b,y:c}),f.arrowstart.attr("polypath",[3,b+d*0.5,c+k*0.5,k*0.25,90]),f.end.attr({width:d,height:k,x:b,y:c+a-k}),f.arrowend.attr("polypath",
[3,b+d*0.5,c+a-k*0.5,k*0.25,-90]));f.trackLength=a-2*k-l;f.trackOffset=c+k+0.5;f.anchorOffset=f.trackOffset+(l-1)*0.5;f.anchor.attr({height:l-1,width:d-1,y:f.trackOffset+f.trackLength*i,x:b+0.5,r:2})},fill:function(b){var c=this.attrs,d=this._.scroller,a=c["scroll-repaint"],e=c["scroll-display-style"]==="flat",f=c["scroll-orientation"]==="horizontal",h={stroke:"none"},k;if(l&&a&&(k=16-a[f&&3||2])>3)h.stroke=ia,h["stroke-width"]=k;b=i.color(b);b.error&&(b="#000000");b="opacity"in b?"rgba("+[b.r,b.g,
b.b,b.opacity]+")":"rgb("+[b.r,b.g,b.b]+")";h.fill=e&&b||[90*f,i.tintshade(b,0.15).rgba,b].join("-");d.track.attr(h);h.fill=e&&i.tintshade(b,-0.4).rgba||[270*f,i.tintshade(b,-0.7).rgba,i.tintshade(b,-0.4).rgba].join("-");d.anchor.attr(h);if(c["scroll-display-buttons"]!=="none")h.fill=ia,d.start.attr(h),d.end.attr(h),h.fill=d.anchor.attr("fill"),d.arrowstart.attr(h),d.arrowend.attr(h);return!1}};var R=Array.prototype.slice;i.fn.symbol=function(){var b=arguments,c=b.length-1,d=b[c];d&&d.constructor===
i.el.constructor?b[c]=void 0:d=void 0;c=this.path(void 0,d);c.ca.symbol=i.fn.symbol.ca.symbol;return b.length===!!d+0?c:c.attr("symbol",b)};i.fn.symbol.cache={"":i._cacher(function(b,c,d,a){return arguments.length>3?["M",b,c,"h",d,"v",a,"h",-d,"v",-a,"z"]:["M",b-d,c-d,"h",d*=2,"v",d,"h",-d,"v",-d,"z"]})};i.fn.symbol.ca={symbol:function(b){var c=i.is(b,"object")&&arguments.length===1&&!i.is(b,"function")?b:arguments,d;c===b&&(b=c[0]);c=(d=i.is(b,"function")&&b||i.fn.symbol.cache[b]||i.fn.symbol.cache[""])&&
d.apply(i,R.call(c,1));i.is(c,"array")||i.is(c,"string")?this.attr("path",c):c&&this.attr(c)}};i.addSymbol=function(b,c){var d=i.is(c,"function")&&(d={},d[b]=c,d)||b,a=i.fn.symbol.cache,e=[],f;for(f in d)c=d[f],a[f]=i.is(c,"function")&&i._cacher(c,i)||(e.push(f),c);for(;f=e.pop();)a[f]=a[a[f]]};i.fn.button=function(b,c,d,a,e,f){f=this.group("button",f);f._.button={bound:this.rect(f),tracker:this.rect(f).attr({fill:ia,stroke:ia,cursor:"pointer"}).data("compositeButton",f)};var h;!i.is(e,"object")&&
(e={});for(h in i.fn.button.fn)f[h]=i.fn.button.fn[h];for(h in i.fn.button.ca)f.ca[h]=i.fn.button.ca[h];return f.attr({ishot:!0,"button-padding":[e.horizontalPadding,e.verticalPadding],"button-label":d,"button-symbol":a,"button-disabled":e.disabled,"button-symbol-position":e.symbolPosition,"button-symbol-padding":e.symbolPadding}).attr("button-repaint",[b,c,e.width,e.height,e.r])};i.fn.button.e={hoverin:function(){var b=this._.button.hoverbackIn;b&&b()===!1||(this.attr("fill","hover").hovered=!0)},
hoverout:function(){var b=this._.button.hoverbackOut;b&&b()===!1||(this.attr("fill",(this.pressed||this.active)&&"active"||"normal").hovered=!1)},mousedown:function(){this.attr("fill","active").pressed=!0},mouseup:function(){var b=this._.button.callback;this.attr("fill",this.hovered&&"hover"||this.active&&"active"||"normal").pressed=!1;b()}};i.fn.button.fn={buttonclick:function(b,c){var d=this._.button,c=c||this;d.callback=function(){return b.apply(c,arguments)};return this},labelcss:function(){var b=
this._.button,c=b.label;b.cssArg=arguments;c&&c.css.apply(c,arguments);return this},buttonhover:function(b,c,d,a){var e=this._.button,d=d||this,a=a||this;e.hoverbackIn=function(){return b.apply(d,arguments)};e.hoverbackOut=function(){return c.apply(a,arguments)};return this}};i.fn.button.ca={"button-active":function(b){this.attr("fill",(this.active=!!b)?"active":this.hovered&&"hover"||"normal")},"button-disabled":function(b){var c=this.paper,d=this._.button.tracker,a=c.button.e,b=L(b);b==="disabled"||
b==="true"||b==="1"?d.attr("fill","rgba(204,204,205,.5)").unmousedown(a.mousedown).unmouseup(a.mouseup).unhover(c.button.e.hoverin,c.button.e.hoverout):d.attr("fill",ia).mousedown(a.mousedown,this).mouseup(a.mouseup,this,!0).hover(c.button.e.hoverin,c.button.e.hoverout,this,this)},"button-label":function(b){var c=this._.button,d=this.attrs,a=c.label,e=c.cssArg,f=this.attrs["button-repaint"],b=L(b||"");if(b==="none")a&&(c.label=a.remove());else if(b)!a&&(a=c.label=this.paper.text(this).insertBefore(c.tracker)),
a.attr({text:b,"text-anchor":"start","vertical-align":"top"}),e&&e.length&&a.css.apply(a,e);f&&d["button-label"]!==b&&this.attr("button-repaint",f)},"button-symbol":function(b){var c=this.attrs,d=this._.button,a=d.symbol,e=this.attrs["button-repaint"],b=L(b||"");if(b==="none")a&&(d.symbol=a.remove());else if(b&&!a)d.symbol=this.paper.symbol(this).insertAfter(d.bound);e&&c["button-symbol"]!==b&&this.attr("button-repaint",e)},"button-symbol-position":function(b){return{"button-symbol-position":{top:"top",
right:"right",bottom:"bottom",left:"left",none:"none"}[L(b).toLowerCase()]||"none"}},"button-symbol-padding":function(b){return{"button-symbol-padding":H(b)}},"button-padding":function(b,c){return{"button-padding":[b==null&&(b=5)||H(b),c==null&&b||H(c)]}},"button-repaint":function(b,c,d,a,e){var f=this._.button,h=f.bound,k=f.label,l=f.symbol,m=this.attrs,p=m["button-padding"],q=p[0],v=p[1],y;b==void 0&&(b=0);c==void 0&&(c=0);if(d==void 0||a==void 0)y=k&&k.getBBox()||{width:0,height:0},d==void 0&&
(d=q*2+y.width),a==void 0&&(a=v*2+y.height);h=i.crispBound(b,c,d,a,h.attr("stroke-width"));h.r=i.pick(e,ha(r(a,d)*0.1));b=h.x;c=h.y;d=h.width;a=h.height;k&&k.attr({x:b+q,y:c+v});if(l){!i.is(y=m["button-symbol-padding"],"finite")&&(y=a*0.2);e=(a-v)*0.5;switch(m["button-symbol-position"]+(k&&"+"||"-")){case "right+":d+=e*2+v;b=b+d-e-q;c+=a*0.5;break;case "left+":b=b+q+e;c+=a*0.5;k.attr("x",b+e+y);break;case "top+":b+=d*0.5;c=c+p[1]+e;k&&k.attr("y",c+e+y);break;case "bottom+":a+=e*2+y;b+=d*0.5;c=c+a-
v-e;break;default:b+=d*0.5,c+=a*0.5}l.attr("symbol",[m["button-symbol"],b,c,e])}f.bound.attr(h);f.tracker.attr(h)},fill:function(b,c,d,a){var e=this._.button,f=e.bound,h=e.symbol,k=e.label,l={normal:e.gradient,active:e.gradientActive,hover:e.gradientHover}[b];if(!l)b=i.getRGB(b),b.error&&(b=i.color("#cccccc")),b="opacity"in b?"rgba("+[b.r,b.g,b.b,b.opacity]+")":"rgb("+[b.r,b.g,b.b]+")",e.gradient=[90,i.tintshade(b,-0.8).rgba+":0",i.tintshade(b,0.8).rgba+":100"].join("-"),e.gradientActive=[270,i.tintshade(b,
-0.8).rgba+":0",i.tintshade(b,0.8).rgba+":100"].join("-"),a=i.getRGB(a),a.error&&(a=b)||(a="opacity"in a?"rgba("+[a.r,a.g,a.b,a.opacity]+")":"rgb("+[a.r,a.g,a.b]+")"),e.gradientHover=[90,i.tintshade(a,-0.9).rgba+":0",i.tintshade(a,0.7).rgba+":100"].join("-"),d=d||i.tintshade(b,0.2).rgba,c=c||i.tintshade(b,-0.2).rgba,e.symbolFill=d,e.labelFill=c,l=(this.pressed||this.active)&&e.gradientActive||this.hovered&&e.gradienthover||e.gradient;f.attr("fill",l);h&&h.attr("fill",e.symbolFill);k&&k.attr("fill",
e.labelFill);return!1},stroke:function(b,c){var d=this._.button,a=d.symbol,b=i.color(b);b.error&&(b=i.color("#999999"));d.bound.attr("stroke",b);a&&a.attr("stroke",c||b);return!1},"stroke-width":function(b,c){var d=this._.button,a=d.symbol;d.bound.attr("stroke-width",b);d.tracker.attr("stroke-width",b);a&&a.attr("stroke-width",c);return!1}};var Z={Q:"L",Z:"X",q:"l",z:"x",",":" "},O=/,?([achlmqrstvxz]),?/gi,X,K=function(){return this.join(",").replace(O,X)},y,v;if(i.svg)X="$1",y=function(b){b?typeof b===
"string"?b=b.replace(O,X):b.toString=K:b="M0,0";this.node.setAttribute("d",b.toString());return this},i._engine.litepath=function(b,c,d,a){b=x("path");(a||c).canvas.appendChild(b);c=new p(b,c,a);c.type="litepath";m(c,{fill:"none",stroke:"#000"});return c},i._getPath.litepath=function(b){return i.parsePathString(b.node.getAttribute("d"))};else if(i.vml)X=function(b,c){return Z[c]||c},v=function(){this._transform.apply(this,arguments);this._.bcoord&&(this.node.coordsize=this._.bcoord);return this},
y=function(b){b?typeof b==="string"?b=b.replace(O,X):b.toString=K:b="M0,0";this.node.path=b;return this},i._engine.litepath=function(b,c,d,a){var b=x("shape"),e=b.style,f=new p(b,c,a);e.cssText="position:absolute;left:0;top:0;width:21600px;height:21600px;";d=H(d);isNaN(d)?b.coordsize="21600 21600":(f._.bzoom=d,e.width="1px",e.height="1px",b.coordsize=f._.bcoord=d+" "+d);b.coordorigin=c.coordorigin;f.type="litepath";f._transform=f.transform;f.transform=v;i._setFillAndStroke(f,{fill:"none",stroke:"#000"});
(a||c).canvas.appendChild(b);c=x("skew");c.on=!0;b.appendChild(c);f.skew=c;return f},i._getPath.litepath=function(b){return i.parsePathString(b.node.path||"")};i.fn.litepath=function(b,c,d){c&&c.constructor===p&&(d=c,c=void 0);b&&b.constructor===p&&(d=b,b="");c=i._engine.litepath(b,this,c,d);c.ca.litepath=y;b&&c.attr("litepath",i.is(b,"array")?[b]:b);this.__set__&&this.__set__.push(c);return c}}]);
FusionCharts(["private","modules.renderer.js-raphaelexport",function(){var i=this.hcLib,l=i.Raphael,w=i.pluckNumber,q=i.pluck,d=l._availableAttrs,h=/^matrix\(|\)$/g,aa=/\,/g,e=/\n|<br\s*?\/?>/ig,k=/[^\d\.]/ig,r=/[\(\)\s,\xb0#]/g,ha=/group/ig,D=/&/g,ba=/"/g,E=/'/g,H=/</g,L=/>/g,B=0;(function(i){var l=Math,M=parseFloat,x=l.max,m=l.abs,p=l.pow,R=String,Z=/[, ]+/,O=[{reg:/xmlns\=\"http\:\/\/www.w3.org\/2000\/svg\"/ig,repStr:""},{reg:/^.*<svg /,repStr:'<svg xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/2000/svg" '},
{reg:/\/svg>.*$/,repStr:"/svg>"},{reg:/\<desc\>[^\<]*\<\/desc\>/,repStr:""},{reg:/zIndex="[^"]+"/g,repStr:""},{reg:/url\((\\?[\'\"])[^#]+#/g,repStr:"url($1#"},{reg:/ href=/g,repStr:" xlink:href="},{reg:/(id|class|width|height)=([^" >]+)/g,repStr:'$1="$2"'},{reg:/:(path|rect)/g,repStr:"$1"},{reg:/\<ima?ge? ([^\>]+?)[^\/]\>/gi,repStr:"<image $1 />"},{reg:/\<\/ima?ge?\>/g,repStr:""},{reg:/style="([^"]+)"/g,repStr:function(d){return d.toLowerCase()}}],X={blur:function(){},transform:function(){},src:function(d,
e){e.attrSTR+=' xlink:href="'+e.attrs.src+'"'},path:function(d,e){var b=e.attrs.path,b=i._pathToAbsolute(b||"");e.attrSTR+=' d="'+(b.toString&&b.toString()||"").replace(aa," ")+'"'},gradient:function(d,e,b){var c=d.attrs.gradient,h="linear",a,g,f=0.5,k=0.5,q=g="",w="";a=c.replace(r,"_");if(!b[a]){c=R(c).replace(i._radial_gradient,function(a,b,c){h="radial";b&&c&&(f=M(b),k=M(c),a=(k>0.5)*2-1,p(f-0.5,2)+p(k-0.5,2)>0.25&&(k=l.sqrt(0.25-p(f-0.5,2))*a+0.5)&&k!=0.5&&(k=k.toFixed(5)-1.0E-5*a));return""});
c=c.split(/\s*\-\s*/);if(h==="linear"){g=c.shift();g=-M(g);if(isNaN(g))return null;var D=[0,0,l.cos(i.rad(g)),l.sin(i.rad(g))];g=1/(x(m(D[2]),m(D[3]))||1);D[2]*=g;D[3]*=g;D[2]<0&&(D[0]=-D[2],D[2]=0);D[3]<0&&(D[1]=-D[3],D[3]=0)}c=i._parseDots(c);if(!c)return null;h==="radial"?(g='<radialGradient fx = "'+f+'" fy = "'+k+'" id = "'+a+'">',q="</radialGradient>"):(g='<linearGradient x1 = "'+D[0]+'" y1 = "'+D[1]+'" x2 = "'+D[2]+'" y2 = "'+D[3]+'" gradientTransform ="matrix('+d.matrix.invert()+')" id = "'+
a+'">',q="</linearGradient>");d=0;for(D=c.length;d<D;d++)w+='<stop offset="'+(c[d].offset?c[d].offset:d?"100%":"0%")+'" stop-color="'+(c[d].color||"#fff")+'" stop-opacity="'+(c[d].opacity===void 0?1:c[d].opacity)+'" />';b[a]=!0;b.str+=g+w+q}e.attrSTR+=" fill=\"url('#"+a+"')\""},fill:function(d,e){var b=e.attrs,c=b.fill,h;if(!d.attrs.gradient)if(c=i.color(c),h=c.opacity,d.type==="text")e.styleSTR+="fill:"+c+"; stroke-opacity:0; ";else if(e.attrSTR+=' fill="'+c+'"',!b["fill-opacity"]&&(h||h===0))e.attrSTR+=
' fill-opacity="'+h+'"'},stroke:function(d,e){var b=e.attrs,c,h;c=i.color(b.stroke);h=c.opacity;if(d.type!=="text"&&(e.attrSTR+=' stroke="'+c+'"',!b["stroke-opacity"]&&(h||h===0)))e.attrSTR+=' stroke-opacity="'+h+'"'},"clip-rect":function(d,e,b){var c=R(e.attrs["clip-rect"]),j=c.split(Z),c=c.replace(r,"_")+"__"+B++;j.length===4&&(b[c]||(b[c]=!0,b.str+='<clipPath id="'+c+'"><rect x="'+j[0]+'" y="'+j[1]+'" width="'+j[2]+'" height="'+j[3]+'" transform="matrix('+d.matrix.invert().toMatrixString().replace(h,
"")+')"/></clipPath>'),e.attrSTR+=' clip-path="url(#'+c+')"')},cursor:function(d,e){var b=e.attrs.cursor;b&&(e.styleSTR+="cursor:"+b+"; ")},font:function(d,e){e.styleSTR+="font:"+e.attrs.font.replace(/\"/ig," ")+"; "},"font-size":function(d,e){var b=q(e.attrs["font-size"],"10");b&&b.replace&&(b=b.replace(k,""));e.styleSTR+="font-size:"+b+"px; "},"font-weight":function(d,e){e.styleSTR+="font-weight:"+e.attrs["font-weight"]+"; "},"font-family":function(d,e){e.styleSTR+="font-family:"+e.attrs["font-family"]+
"; "},"line-height":function(){},"clip-path":function(){},visibility:function(){},"vertical-align":function(){},"text-anchor":function(d,e){var b=e.attrs["text-anchor"]||"middle";d.type==="text"&&(e.attrSTR+=' text-anchor="'+b+'"')},title:function(){},text:function(d,h){var b=h.attrs,c=b.text,j=q(b["font-size"],b.font,"10"),a=q(b["line-height"]),g;j&&j.replace&&(j=j.replace(k,""));j=w(j);a&&a.replace&&(a=a.replace(k,""));a=w(a,j&&j*1.2);g=j?j*0.85:a*0.75;for(var j=b.x,f=q(b["vertical-align"],"middle").toLowerCase(),
c=R(c).split(e),b=c.length,i=0,f=f==="top"?g:f==="bottom"?g-a*b:g-a*b*0.5;i<b;i++)h.textSTR+="<tspan ",g=(c[i]||"").replace(D,"&amp;").replace(ba,"&quot;").replace(E,"&#39;").replace(H,"&lt;").replace(L,"&gt;"),h.textSTR+=i?'dy="'+a+'" x="'+j+'" ':'dy="'+f+'"',h.textSTR+=">"+g+"</tspan>"}},K=function(e,i){var b="",c={attrSTR:"",styleSTR:"",textSTR:"",attrs:e.attr()},j=e.isShadow,a="",g="",f,k,l=c.attrs;if(e.node.style.display!=="none"&&!j){for(f in l)if(f!=="gradient"&&(d[f]!==void 0||X[f]))if(X[f])X[f](e,
c,i);else c.attrSTR+=" "+f+'="'+l[f]+'"';e.attrs.gradient&&X.gradient(e,c,i);e.type==="rect"&&l.r&&(c.attrSTR+=' rx="'+l.r+'" ry="'+l.r+'"');for(k in e.styles)c.styleSTR+=k+":"+e.styles[k]+"; ";e.type==="image"&&(c.attrSTR+=' preserveAspectRatio="none"');e.bottom&&(a=K(e.bottom,i));e.next&&(g=K(e.next,i));j=e.type;j.match(ha)&&(j="g");b+="<"+j+' transform="matrix('+e.matrix.toMatrixString().replace(h,"")+')" style="'+c.styleSTR+'"'+c.attrSTR+">"+c.textSTR+a+"</"+j+">"+g}else e.next&&(b+=K(e.next,
i));return b};i.fn.toSVG=function(d){var e="",b={str:""},c=0,h=O.length,a="";if(i.svg){if(this.canvas&&this.canvas.parentNode)for(e=this.canvas.parentNode.innerHTML;c<h;c+=1)b=O[c],e=e.replace(b.reg,b.repStr)}else e='<svg style="overflow: hidden; position: relative;" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="'+this.width+'" version="1.1" height="'+this.height+'">',this.bottom&&(a=K(this.bottom,b)),e+="<defs>"+b.str+"</defs>"+a+"</svg>";d&&(e=e.replace(/\<image [^\>]*\>/gi,
""));return e}})(l)}]);
FusionCharts(["private","modules.renderer.js-raphaeltooltip",function(){var i=window,l=document,w=this.hcLib,q=w.Raphael,d=q.eve,h=w.createElement,aa=w.addEvent,e=w.removeEvent,k=w.getPosition,r=w.hasTouch,ha=w.getTouchEvent,D=i.Math,ba=D.ceil,E=D.floor,H=i.screen.availHeight,L=i.screen.availWidth,B={"":1,moz:1,webkit:1,o:1,ms:1},ia={borderRadius:"borderRadius",boxShadow:"boxShadow"},P=/\-([a-z])/ig,M=function(d,e){return e.toUpperCase()},x=function(d){var e=m.forbiddenStyle,h,i,k;for(h in d)i=P.test(h)?
h.replace(P,M):h,d[h]!==void 0&&!e[i]&&(this[i]=d[h]),q.vml&&/color/ig.test(i)&&(this[i]=q.getRGB(this[i]).toString());for(h in ia)if(this[h])for(k in B)this[k+h]=this[h]},m=w.toolTip={elementId:"fusioncharts-tooltip-element",element:null,lastTarget:null,currentTarget:null,currentPaper:null,pointeroffset:12,defaultStyle:w.extend2(x.prototype,{backgroundColor:"#ffffee",borderColor:"#000000",borderWidth:"1px",color:"#000000",fontSize:"10px",lineHeight:"12px",padding:"3px",borderStyle:"solid"}),defaultContainerStyle:{position:"absolute",
textAlign:"left",margin:"0",zIndex:"999",pointer:"default",display:"block"},forbiddenStyle:{}},p=function(d){e(window,"click",p);m.onhide.call(this,d)};if(q.svg)m.defaultContainerStyle.pointerEvents="none",m.defaultStyle.borderRadius="0",m.defaultStyle.boxShadow="none";if(q.vml)m.forbiddenStyle.borderRadius=!0,m.forbiddenStyle.boxShadow=!0,m.defaultStyle.filter="";m.setup=function(){var e=m.container,i=m.textElement,k=m.style,p=m.defaultContainerStyle,x=m.forbiddenStyle,y;if(!e)e=m.element=h("span"),
(l.body||l.getElementsByTagName("body")[0]).appendChild(e),e.setAttribute("id",m.elementId),k=m.containerStyle=q.vml?e.runtimeStyle:e.style,i=m.textElement=h("span"),e.appendChild(i),m.style=q.vml?i.runtimeStyle:i.style,m.style.overflow="hidden",m.style.display="block",m.hidden=!1,m.hide();for(y in p)!x[y]&&(k[y]=p[y]);aa(e,r&&"touchstart"||"mouseover",m.onredraw);m.scatted=!0;d.on("raphael.drag.start.*",function(){m.scatted&&(m.waitingScat=!0)});d.on("raphael.drag.move.*",function(){if(m.waitingScat)m.block(),
m.waitingScat=!1});d.on("raphael.drag.end.*",function(){m.waitingScat=!1;m.scatted&&m.unblock(!0)});d.on("raphael.remove",function(){if(m.currentPaper===this||m.currentTarget&&m.currentTarget.paper===this)m.hide(),m.currentTarget=m.currentPaper=null})};m.restyle=function(d){var e=m.style,h;for(h in d)e[h]=d[h]};m.onelement=function(d){var e=d.data,h=e.paper;if(h.__tip_style){m.hiding&&(m.hiding=clearTimeout(m.hiding));if(m.currentPaper!==h)h.__tip_cp=h.canvas&&k(h.canvas.parentNode,!0)||{},m.restyle(h.__tip_style),
m.currentPaper=h;m.lastTarget=m.currentTarget;m.currentTarget=e;m.scatted=e.__tip_scatted;m.onredraw.call(this,d);if(r)return aa(window,"click",p),!1}};m.onredraw=function(d){m.redrawing&&clearTimeout(m.redrawing);d=ha(d);m.x=E(d.pageX);m.y=E(d.pageY);m.redrawing=setTimeout(m.redraw,0)};m.onhide=function(){m.hiding=setTimeout(m.hide,200)};m.redraw=function(){if(!m.blocked&&m.currentTarget){var d=m.currentTarget,e=d.paper,h=m.textElement,i=m.containerStyle,k=m.style,p=d.__tip_text,d=m.pointeroffset,
q=e.__tip_cp,b=l.documentElement||l.body,c=b.scrollLeft,b=b.scrollTop,j=m.x,a=m.y,g,f=e.width,x=e.height,e=e.__tip_constrain;if(f<100||x<100)e=!1;if(m.hidden)m.containerStyle.top="-999em",m.show();if(p!==m.text)m.text=p,i.width=i.height="",h.innerHTML=p,k.whiteSpace="nowrap",p=ba(k.pixelWidth||h.offsetWidth||0),g=ba(k.pixelHeight||h.offsetHeight||0),k.whiteSpace="normal",i.width=(m.textWidthOverflow=p>f)?(f||0)-d*2+"px":"",i.height=(m.textHeightOverflow=g>x)?(x||0)-d*2+"px":"";p=ba(k.pixelWidth||
h.offsetWidth||0);g=ba(k.pixelHeight||h.offsetHeight||0);e?(m.textWidthOverflow?j=q.left-c:j+d+p>q.left-c+f-d&&(j=j-p-d),m.textHeightOverflow?a=q.top-b:a+d+g>q.top-b+x-d&&(a=a-g-d*1.5)):(c+L<j+d+p&&(j=j-p-d),b+H<a+d+g&&(a=a-g-d*1.5));i.left=(j+d||0)+"px";i.top=(a+d||0)+"px";m.hidden&&m.show()}};m.hide=function(){m.hiding&&(m.hiding=clearTimeout(m.hiding));m.containerStyle.display="none";m.hidden=!0};m.show=function(){if(!m.blocked)m.hiding&&(m.hiding=clearTimeout(m.hiding)),m.containerStyle.display=
"inline",m.hidden=!1};m.block=function(){m.blocked=!0;m.containerStyle.display="none"};m.unblock=function(d){m.blocked=!1;d&&(m.containerStyle.display=m.hidden&&"none"||"inline")};q.fn.tooltip=function(d,e,h){if(e)e=(e.opacity===void 0?1:e.opacity)*0.4,q.svg?d.boxShadow="1px 1px 3px rgba(64,64,64,"+e+")":d.filter="progid:DXImageTransform.Microsoft.Shadow(Strength=2, Direction=135, Color='#404040', shadowOpacity='"+e/2+"')";this.__tip_style=new x(d);this.__tip_cp=this.canvas&&k(this.canvas.parentNode,
!0)||{};this.__tip_constrain=Boolean(h);return this};q.el.tooltip=function(d,h,i,k,l){m.setup();q.el.tooltip=function(d,h,b,c,j){h=this.node;b=d==void 0||!(d+"");this.__tip_scatted=c==void 0?this.__tip_scatted:!c;this.__tip_scatted==void 0&&(this.__tip_scatted=!0);if(j!=null)this.__tip_blocked=j;b^!this.__tip_text&&(r?(b?e:aa)(h,"click",m.onelement,this):b?(e(h,"mouseover",m.onelement,this),e(h,"mousemove",m.onredraw,this),e(h,"mouseout",m.onhide,this)):(aa(h,"mouseover",m.onelement,this),aa(h,"mousemove",
m.onredraw,this),aa(h,"mouseout",m.onhide,this)));this.__tip_text=d;if(m.currentTarget===this&&d!==m.text&&!m.hidden)m[b?"hide":"redraw"]();return this};return q.el.tooltip.call(this,d,h,i,k,l)}}]);
FusionCharts(["private","modules.renderer.js-base",function(){var i=this,l=i.hcLib,w=window.document,q=l.BLANKSTRING,d=l.createTrendLine,h=l.pluck,aa=l.getValidValue,e=l.pluckNumber,k=l.defaultPaletteOptions,r=l.getFirstValue,ha=l.getDefinedColor,D=l.parseUnsafeString,ba=l.FC_CONFIG_STRING,E=l.extend2,H=l.getDashStyle,L=l.toPrecision,B=l.regex.dropHash,ia=l.HASHSTRING,P=l.getSentenceCase,M=l.addEvent,x=Math,m=x.min,p=x.max,R=x.ceil,Z=x.floor,O=x.log,X=x.pow,K=l.graphics.getColumnColor,y=l.getFirstColor,
v=l.setLineHeight,b=l.pluckFontSize,c=l.getFirstAlpha,j=l.graphics.getDarkColor,a=l.graphics.getLightColor,g=l.graphics.convertColor,f=l.COLOR_TRANSPARENT,t=l.POSITION_CENTER,u=l.POSITION_TOP,S=l.POSITION_BOTTOM,U=l.POSITION_RIGHT,Na=l.POSITION_LEFT,$=l.chartAPI,Ua=l.titleSpaceManager,x=l.placeLegendBlockBottom,fa=l.placeLegendBlockRight,sa=l.graphics.mapSymbolName,x=$.singleseries,fa=$.multiseries,V=l.COMMASTRING,pa=l.STRINGUNDEFINED,xa=l.ZEROSTRING,ya=l.ONESTRING,Aa=l.HUNDREDSTRING,Ja=l.PXSTRING,
Va=l.COMMASPACE,ja=!/fusioncharts\.com$/i.test(location.hostname),Da=l.CREDIT_STRING="FusionCharts XT Trial",bb=l.BLANKSTRINGPLACEHOLDER,Pa=l.BGRATIOSTRING,Sa=l.COLOR_WHITE,Ca=l.TESTSTR,$a=l.graphics.getAngle,Ia=l.axisLabelAdder,cb=l.falseFN,ab=l.SmartLabelManager,eb=l.NumberFormatter,Za=l.getLinkAction,La=l.getAxisLimits,Ka=l.createDialog,n=function(a,b){return a>0?O(a)/O(b||10):null},C=l.hasTouch=document.documentElement.ontouchstart!==void 0;l.removeEvent=function(a,b,c){var d=w.removeEventListener?
"removeEventListener":"detachEvent";w[d]&&!a[d]&&(a[d]=function(){});jQuery(a).unbind(b,c)};var F=l.fireEvent=function(a,b,c,d){var e=jQ.Event(b),f="detached"+b;E(e,c);a[b]&&(a[f]=a[b],a[b]=null);jQuery(a).trigger(e);a[f]&&(a[b]=a[f],a[f]=null);d&&!e.isDefaultPrevented()&&d(e)},I={fontWeight:{1:"bold",0:"normal"},fontStyle:{1:"italic",0:"normal"},textDecoration:{1:"underline",0:"none"}},Q={font:function(a,b){b.style.fontFamily=a},size:function(a,c){if(a)c.style.fontSize=b(a)+Ja},color:function(a,
b,c){b.style.color=a&&a.replace&&a.replace(B,ia)||q;if(c)b.color=b.style.color},bgcolor:function(a,b){b.style.backgroundColor=a&&a.replace&&a.replace(B,ia)||q},bordercolor:function(a,b){b.style.border="1px solid";b.style.borderColor=a&&a.replace&&a.replace(B,ia)||q},ishtml:q,leftmargin:function(a,b){b.style.marginLeft=e(a,0)+Ja},letterspacing:function(a,b){b.style.letterSpacing=e(a,0)+Ja},bold:function(a,b){b.style.fontWeight=I.fontWeight[a]||""},italic:function(a,b){b.style.fontStyle=I.fontStyle[a]||
""},underline:function(a,b){b.style.textDecoration=I.textDecoration[a]||""}},Y={chart2D:{bgColor:"bgColor",bgAlpha:"bgAlpha",bgAngle:"bgAngle",bgRatio:"bgRatio",canvasBgColor:"canvasBgColor",canvasBaseColor:"canvasBaseColor",divLineColor:"divLineColor",legendBgColor:"legendBgColor",legendBorderColor:"legendBorderColor",toolTipbgColor:"toolTipbgColor",toolTipBorderColor:"toolTipBorderColor",baseFontColor:"baseFontColor",anchorBgColor:"anchorBgColor"},chart3D:{bgColor:"bgColor3D",bgAlpha:"bgAlpha3D",
bgAngle:"bgAngle3D",bgRatio:"bgRatio3D",canvasBgColor:"canvasBgColor3D",canvasBaseColor:"canvasBaseColor3D",divLineColor:"divLineColor3D",divLineAlpha:"divLineAlpha3D",legendBgColor:"legendBgColor3D",legendBorderColor:"legendBorderColor3D",toolTipbgColor:"toolTipbgColor3D",toolTipBorderColor:"toolTipBorderColor3D",baseFontColor:"baseFontColor3D",anchorBgColor:"anchorBgColor3D"}},N=function(){var a={},b,c=function(){var c,d,e,f,h=0,A;for(c in a)if(h+=1,d=a[c],e=d.jsVars,f=(d=d.ref)&&d.parentNode){if(A=
f.offsetWidth,f=f.offsetHeight,!e.resizeLocked&&(e._containerOffsetW!==A||e._containerOffsetH!==f))d.resize&&d.resize(),e._containerOffsetW=A,e._containerOffsetH=f}else delete a[c],h-=1;h||(b=clearInterval(b))};return function(d){var e=d.jsVars,f=d.ref&&d.ref.parentNode||{};e._containerOffsetW=f.offsetWidth;e._containerOffsetH=f.offsetHeight;a[d.id]=d;b||(b=setInterval(c,300))}}(),z={getExternalInterfaceMethods:function(){var a=$[this.jsVars.type],a=a&&a.eiMethods,b="saveAsImage,print,exportChart,getXML,hasRendered,signature,cancelExport,getSVGString,";
if(typeof a==="string")b+=a+V;else if(a!==void 0||a!==null)for(var c in a)b+=c+V;return b.substr(0,b.length-1)},drawOverlayButton:function(a){var b=this.jsVars,c=b.$overlayButton;if(a&&a.show){if(!c)c=b.$overlayButton=jQuery("<span>"),c.click(function(){i.raiseEvent("OverlayButtonClick",a,b.fcObj)});c.text(a.message?a.message:"Back");b.overlayButtonMessage=c.text();c.css({border:"1px solid "+(a.borderColor?a.borderColor.replace(B,ia):"#7f8975"),backgroundColor:a.bgColor?a.bgColor.replace(B,ia):"#edefec",
fontFamily:a.font?a.font:"Verdana",color:"#"+a.fontColor?a.fontColor:"49563a",fontSize:(a.fontSize?a.fontSize:"10")+Ja,padding:(a.padding?a.padding:"3")+Ja,fontWeight:parseInt(a.bold,10)===0?"normal":"bold",position:"absolute",top:"0",right:"0",_cursor:"hand",cursor:"pointer"});b.hcObj.container.appendChild(c[0]);b.overlayButtonActive=!0}else if(c)c.detach(),b.overlayButtonActive=!1,delete b.overlayButtonMessage},print:function(){return this.jsVars.hcObj&&this.jsVars.hcObj.hasRendered&&this.jsVars.hcObj.print()},
exportChart:function(a){var b=this.jsVars.hcObj;if(b&&b.options&&b.options.exporting&&b.options.exporting.enabled)return b.exportChart(a);return!1},getSVGString:function(){return this.jsVars&&this.jsVars.hcObj&&this.jsVars.hcObj.paper&&this.jsVars.hcObj.paper.toSVG()},resize:function(){var a=this.jsVars,b=a.container,c=a.fcObj,d=a.hcObj;d&&(d&&d.destroy&&d.destroy(),l.createChart(a.fcObj,b,a.type,void 0,void 0,!1),delete a.isResizing,l.raiseEvent("resized",{width:c.width,height:c.height,prevWidth:a.width,
prevHeight:a.height},c,[c.id]))},lockResize:function(a){return this.jsVars.resizeLocked=a===void 0&&!0||a},showChartMessage:function(a,b,c){var d=this.jsVars,e=d.hcObj;d.msgStore[a]&&(a=d.msgStore[a]);b&&e&&e.hasRendered?a?e.showMessage(a,c):e.hideLoading():(e&&e.destroy&&e.destroy(),l.createChart(d.fcObj,d.container,d.type,void 0,a));return a},signature:function(){return"FusionCharts/3.3.1 (XT)"}};l.createChart=function(a,b,c,d,e,f,h){var g=a.jsVars,n=g.msgStore,j,s=$[c],k,C=function(e){var f={renderer:"javascript"},
o=g.fcObj,h=o.width,n=o.height,j=s&&s.eiMethods,ka=g.$overlayButton;b.jsVars=a.jsVars;g.container=b;g.hcObj=e;g.type=c;g.width=b.offsetWidth;g.height=b.offsetHeight;g.instanceAPI=k;if(e.hasRendered){i.extend(b,z);if(j&&typeof j!=="string")for(var C in j)b[C]=j[C];g.overlayButtonActive&&ka&&(ka.text(g.overlayButtonMessage),e.container.appendChild(ka[0]))}d&&(d({success:e.hasRendered,ref:b,id:a.id}),e.hasRendered&&(h=Number((h&&h.match&&h.match(/^\s*(\d*\.?\d*)\%\s*$/)||[])[1]),n=Number((n&&n.match&&
n.match(/^\s*(\d*\.?\d*)\%\s*$/)||[])[1]),(h||n)&&o.ref&&o.ref.parentNode&&N(o),l.raiseEvent("loaded",{type:c,renderer:"javascript"},a,[a.id]),l.raiseEvent("rendered",{renderer:"javascript"},o,[o.id])));if(e.hasRendered&&g.previousDrawCount<g.drawCount)f.width=g.width,f.height=g.height,f.drawCount=g.drawCount,f.drawingLatency=k.drawingLatency,f.displayingMessage=g.hasNativeMessage,l.raiseEvent("drawcomplete",f,o,[o.id])};a.__state.dataReady=!1;g.instanceAPI&&g.instanceAPI.dispose&&g.instanceAPI.dispose();
k=s?new $(c):new $("stub");k.chartInstance=a;if(e!==void 0){if(typeof e==="string")e=new Ka(b,e),g.hasNativeMessage=!0}else!s||!s.init||s&&s.name==="stub"?(e=new Ka(b,n.ChartNotSupported),g.hasNativeMessage=!0):g.message?(e=new Ka(b,g.message),g.hasNativeMessage=!0):g.loadError?(e=new Ka(b,n.LoadDataErrorText),g.hasNativeMessage=!0):g.stallLoad?(e=new Ka(b,n.XMLLoadingText),g.hasNativeMessage=!0):(e=a.getChartData(FusionChartsDataFormats.JSON,!0),j=e.data,e.error instanceof Error?(e=new Ka(b,n.InvalidXMLText),
g.hasNativeMessage=!0,h||l.raiseEvent("dataxmlinvalid",{},g.fcObj,[g.fcObj.id])):(h||l.raiseEvent("dataloaded",{},g.fcObj,[g.fcObj.id]),e=k.init(b,j,a,C),g.previousDrawCount=g.drawCount,g.drawCount+=1,e.series.length===0?(e=new Ka(b,n.ChartNoDataText),g.hasNativeMessage=!0,h||l.raiseEvent("nodatatodisplay",{},g.fcObj,[g.fcObj.id])):(a.__state.dataReady=!0,g.hasNativeMessage=!1,delete g.message)));if(!e)e=new Ka(b,"Error rendering chart {0x01}"),g.hasNativeMessage=!0;e.chart=e.chart||{};e.chart.renderTo=
b;e.credits=e.credits||{};e.credits.enabled=s&&s.creditLabel===!0?!0:!1;if(f===!1)e.chart.animation=!1,(e.plotOptions||(e.plotOptions={}))&&(e.plotOptions.series||(e.plotOptions.series={})),e.plotOptions.series.animation=!1;if(b.style)e.chart.containerBackgroundColor=g.transparent?"transparent":a.options.containerBackgroundColor||"#ffffff";return k.draw(e,C)};var ua=l.HCstub=function(a,b,c,d){var a=a.chart,f=e(a.charttopmargin,d.charttopmargin,15),g=e(a.chartrightmargin,d.chartrightmargin,15),h=e(a.chartbottommargin,
d.chartbottommargin,15),n=e(a.chartleftmargin,d.chartleftmargin,15),j=f+h,i=n+g;c*=0.7;b*=0.7;j>c&&(f-=(j-c)*f/j,h-=(j-c)*h/j);i>b&&(n-=(i-b)*n/i,g-=(i-b)*g/i);b={_FCconf:{0:{stack:{}},1:{stack:{}},x:{stack:{}},oriCatTmp:[],noWrap:!1,marginLeftExtraSpace:0,marginRightExtraSpace:0,marginBottomExtraSpace:0,marginTopExtraSpace:0,marimekkoTotal:0},chart:{alignTicks:!1,renderTo:q,ignoreHiddenSeries:!1,events:{},reflow:!1,spacingTop:f,spacingRight:g,spacingBottom:h,spacingLeft:n,marginTop:f,marginRight:g,
marginBottom:h,marginLeft:n,borderRadius:0,plotBackgroundColor:"#FFFFFF",style:{},animation:!e(a.defaultanimation,1)?!1:{duration:e(a.animationduration,1)*500}},colors:["AFD8F8","F6BD0F","8BBA00","FF8E46","008E8E","D64646","8E468E","588526","B3AA00","008ED6","9D080D","A186BE","CC6600","FDC689","ABA000","F26D7D","FFF200","0054A6","F7941C","CC3300","006600","663300","6DCFF6"],credits:{href:"http://www.fusioncharts.com?BS=FCHSEvalMark",text:Da,enabled:!0},global:{},labels:{items:[]},lang:{},legend:{enabled:!0,
symbolWidth:12,borderRadius:1,backgroundColor:"#FFFFFF",initialItemX:0,title:{text:q,x:0,y:0,padding:2},scroll:{},itemStyle:{}},loading:{},plotOptions:{series:{pointPadding:0,borderColor:"#333333",events:{},animation:!e(a.animation,a.defaultanimation,1)?!1:{duration:e(a.animationduration,1)*1E3},states:{hover:{enabled:!1},select:{enabled:!1}},dataLabels:{enabled:!0,color:"#555555",style:{},formatter:function(){return this.point.showPercentValues?d.numberFormatter.percentValue(this.percentage):this.point.displayValue}},
point:{events:{}}},area:{states:{hover:{enabled:!1}},marker:{lineWidth:1,radius:3,states:{hover:{enabled:!1},select:{enabled:!1}}}},radar:{states:{hover:{enabled:!1}},marker:{lineWidth:1,radius:3,states:{hover:{enabled:!1},select:{enabled:!1}}}},areaspline:{states:{hover:{enabled:!1}},marker:{lineWidth:1,radius:3,states:{hover:{enabled:!1},select:{enabled:!1}}}},line:{shadow:!0,states:{hover:{enabled:!1}},marker:{lineWidth:1,radius:3,states:{hover:{enabled:!1},select:{enabled:!1}}}},scatter:{states:{hover:{enabled:!1}},
marker:{lineWidth:1,radius:3,states:{hover:{enabled:!1},select:{enabled:!1}}}},bubble:{states:{hover:{enabled:!1}},marker:{lineWidth:1,radius:3,states:{hover:{enabled:!1},select:{enabled:!1}}}},spline:{states:{hover:{enabled:!1}},marker:{lineWidth:1,radius:3,states:{hover:{enabled:!1},select:{enabled:!1}}}},pie:{size:"80%",allowPointSelect:!0,cursor:"pointer",point:{events:{legendItemClick:a.interactivelegend===xa?cb:function(){this.slice()}}}},pie3d:{size:"80%",allowPointSelect:!0,cursor:"pointer",
point:{events:{legendItemClick:a.interactivelegend===xa?cb:function(){this.slice()}}}},column:{},floatedcolumn:{},column3d:{},bar:{},bar3d:{}},point:{},series:[],subtitle:{text:q,style:{}},symbols:[],title:{text:q,style:{}},toolbar:{},tooltip:{style:{}},xAxis:{steppedLabels:{style:{}},labels:{x:0,style:{},enabled:!1},lineWidth:0,plotLines:[],plotBands:[],title:{style:{},text:q},tickWidth:0,scroll:{enabled:!1}},yAxis:[{startOnTick:!1,endOnTick:!1,title:{style:{},text:q},tickLength:0,labels:{x:0,style:{}},
plotBands:[],plotLines:[]},{tickLength:0,gridLineWidth:0,startOnTick:!1,endOnTick:!1,title:{style:{},text:q},labels:{x:0,style:{},enabled:!1,formatter:function(){return this.value!==bb?this.value:q}},opposite:!0,plotBands:[],plotLines:[]}],exporting:{buttons:{exportButton:{},printButton:{enabled:!1}}}};if(a.palettecolors&&typeof a.palettecolors==="string")b.colors=a.palettecolors.split(V);return d.hcJSON=b},va=l.placeVerticalAxis=function(a,b,c,d,f,g,h,n,j,i){var s=c[ba],k=s.smartLabel,C,l,F,m,z=
0,n=s.marginRightExtraSpace,I=s.marginLeftExtraSpace,Q={},Y={},ca={},N=a.plotLines,x=a.plotBands,s=b.verticalAxisValuesPadding,v=!isNaN(b.fixedValuesPadding)?b.fixedValuesPadding:0,u=s-v,y=b.verticalAxisValuesPadding,ua=b.verticalAxisNamePadding,w=b.verticalAxisNameWidth,t=b.rotateVerticalAxisName,va=a.offset?a.offset:0,D=0,na=0,r=0,ra=0,oa=0,ea=0,ta=0,G,L,E,H,s=2,ta=h?n+8:I+4,B=function(a,c){var d,e;if(a&&a.label&&aa(a.label.text)!==void 0){E=a.label;if(E.style&&E.style!==L)L=E.style,k.setStyle(L);
C=k.getOriSize(a.label.text);e=(d=C.width)?d+2:0;if(a.isGrid){if(Q[c]={width:d,height:C.height,label:E},ra<=e)ra=e,b.lYLblIdx=c}else a.isTrend&&(h&&E.textAlign===Na||E.textAlign===U?(Y[c]={width:d,height:C.height,label:E},oa=p(oa,e)):(ca[c]={width:d,height:C.height,label:E},ea=p(ea,e)))}},M=function(b,c){var d,e=c?z:z+b;l=l||{};return e>0?(t?(e<l.height&&(l=k.getSmartText(a.title.text,f,e)),d=l.height):(e<l.width&&(l=k.getSmartText(a.title.text,e,f)),d=l.width),a.title.text=l.text,l.tooltext&&(a.title.originalText=
l.tooltext),c?e-d+b:e-d):(a.title.text=q,0)},Oa=function(a,b,c){for(var d in a)a[d].label.x=b,a[d].label.y=c};G=0;for(r=x.length;G<r;G+=1)B(x[G],G);G=0;for(r=N.length;G<r;G+=1)B(N[G],G);if(a.title&&a.title.text!=q)L=a.title.style,k.setStyle(L),F=k.getOriSize(Ca).height,t?(l=k.getSmartText(a.title.text,f,g),z=l.height,m=F):(a.title.rotation=0,l=k.getSmartText(a.title.text,w!==void 0?w:g,f),z=l.width,m=20);ea>0&&(na=ea+y);j&&(d=e(d.chart.maxlabelwidthpercent,0),d>=1&&d<=100&&(j=d*j/100,ra>j&&(ra=j)));
D=p(oa,ra);D+=D?u+v:0;z>0&&(D+=z+ua+ta);(function(){if(na+D>g){H=na+D-g;if(na)if(y>=H){y-=H;return}else H-=y,y=0;if(u+ua>=H)ua>=H?ua-=H:(u-=H-ua,ua=0);else{H-=u+ua;ua=u=0;if(ea>20)if(oa>ra)if(ea-oa>=H){ea-=H;return}else if(oa-ea>=H){oa-=H;return}else if(oa>ea?(H-=oa-ea,oa=ea):(H-=ea-oa,ea=oa),2*(oa-ra)>=H){ea-=H/2;oa-=H/2;return}else H-=2*(oa-ra),ea=oa=ra;else if(ea-20>=H){ea-=H;return}else H-=ea-20,ea=20;if(oa>ra)if(oa-ra>=H){oa-=H;return}else H-=oa-ra,oa=ra;z-m>=H?z-=H:(H-=z-m,z=m,ea>=H?ea=0:(H-=
ea,ea=0,z>=H?z=0:(H-=z,z=0,ra>=H&&(ra-=H,oa=ra))))}}})();r=function(a,b){var c,d=0,e=b?ea-2:ea+a-2;if(ea>0){for(G in ca)if(E=ca[G].label,ca[G].width>e){if(E.style&&E.style!==L)L=E.style,k.setStyle(L);c=k.getSmartText(E.text,e,f,!0);E.text=c.text;c.tooltext&&(E.originalText=c.tooltext);ca[G].height=c.height;d=Math.max(d,c.width)}else d=Math.max(d,ca[G].width);return b?e-d+a:e-d}else{for(G in ca)ca[G].label.text=q;return 0}}(0,!0);r=M(r,!0);r=function(a){var b=0,c=Math.max(ra,oa)+a-2;if(c>0){for(G in Q)if(E=
Q[G].label,Q[G].width>c){if(E.style&&E.style!==L)L=E.style,k.setStyle(L);a=k.getSmartText(E.text,c,f,!0);E.text=a.text;a.tooltext&&(E.originalText=a.tooltext);Q[G].height=a.height;b=Math.max(b,a.width)}else b=Math.max(b,Q[G].width);for(G in Y)if(E=Y[G].label,Y[G].width>c){if(E.style&&E.style!==L)L=E.style,k.setStyle(L);a=k.getSmartText(E.text,c,f,!0);E.text=a.text;a.tooltext&&(E.originalText=a.tooltext);Y[G].height=a.height;b=Math.max(b,a.width)}else b=Math.max(b,Y[G].width);return c-b}else{for(G in Q)Q[G].label.text=
q;for(G in Y)Y[G].label.text=q;return 0}}(r);r=M(r);j=b.verticalAxisNamePadding-ua;r&&j&&(r>j?(ua+=j,r-=j):(ua+=r,r=0));j=b.verticalAxisValuesPadding-(u+v);r&&j&&(r>j?(u+=j,r-=j):(u+=r,r=0));j=b.verticalAxisValuesPadding-y;r&&j&&(r>j?(y+=j,r-=j):(y+=r,r=0));ea>0&&(na=ea+y);D=p(oa,ra);D+=D?u+v:0;z>0&&(D+=z+ua+ta);j=p(oa,ra);j+=j>0?u+v:0;z>0?(t?z<l.height&&(l=k.getSmartText(a.title.text,f,z)):(z<l.width&&(l=k.getSmartText(a.title.text,z,f)),a.title.y=-((l.height-F)/2)),a.title.text=l.text,l.tooltext&&
(a.title.originalText=l.tooltext),a.title.margin=j+ua+ta+(t?z-F:z/2)):a.title.text=q;F=-(u+v+va+I+2);n=n+y+va+2;ta=p(oa,ra);a.labels.style&&(s=parseInt(a.labels.style.fontSize,10)*0.35);h?(ea>0&&Oa(ca,F,s),ta>0&&(Oa(Q,n,s),Oa(Y,n,s))):(ea>0&&Oa(ca,n,s),ta>0&&(Oa(Q,F,s),Oa(Y,F,s)));a.labels._textY=s;a.labels._righttX=n;a.labels._leftX=F;i?(c.chart.marginLeft+=h?na:D-i,c.chart.marginRight+=h?D-i:na):(c.chart.marginLeft+=h?na:D,c.chart.marginRight+=h?D:na);return na+D},Ua=l.titleSpaceManager=function(a,
b,c,d){var f=b.chart,h=D(f.caption),g=D(f.subcaption),j=b=e(f.captionpadding,10),n=a[ba].smartLabel,i=!1,s,k=0,C,l,F=0,z=0,I=0,Q=0,p=a.title,Y=a.subtitle,f=e(f.canvasborderthickness,1);b<f&&(b=f);if(h!==q)C=p.style,I=e(parseInt(C.fontHeight,10),parseInt(C.lineHeight,10),12),e(parseInt(C.fontSize,10),10);if(g!==q)l=Y.style,Q=e(parseInt(l.fontHeight,10),parseInt(l.lineHeight,10),12),e(parseInt(l.fontSize,10),10);if(I>0||Q>0){k=I+Q+b;k>d?(F=k-d,i=!0,F<b?b-=F:(F-=b,b=0,Q>F?(z=Q-F+10,Q=0):(F-=Q,Q=0,I>
F&&(z=I-F),I=0))):z=d-k;if(I>0)n.setStyle(C),I+=z,s=n.getSmartText(h,c,I),z=I-s.height,I=s.height,p.text=s.text,p.height=s.height,s.tooltext&&(p.originalText=s.tooltext);if(Q>0)n.setStyle(l),Q+=z,c=n.getSmartText(g,c,Q),z=Q-c.height,Q=c.height,Y.text=c.text,Y.height=c.height,c.tooltext&&(p.originalText=s.tooltext);i&&z>0&&(b+=m(j-b,z));k=I+Q+b;a.chart.marginTop+=k}return k},na=l.stepYAxisNames=function(a,c,d,e,f,h){for(var g=0,j=e.plotLines,n=[],i,s=e.plotLines.length,c=c[ba].smartLabel,k=parseFloat(b(d.basefontsize,
10)),C;g<s;g+=1)d=j[g],d.isGrid&&d.label&&d.label.text&&(n.push(d),d.value===0&&(i=n.length-1));if(s=n.length)if(e.labels.style?c.setStyle(e.labels.style):n[0].label&&n[0].label.style&&c.setStyle(e.labels.style),g=c.getOriSize("W").height,h||(g+=k*0.4),a/=s-1,a<g){h=Math.max(1,Math.ceil(g/a));for(g=a=i;g<s;g+=1){d=n[g];if(g===f){if((g-a)%h&&C)C.label.text="";a=f}if(d&&d.label)(g-a)%h?d.label.text=q:C=d}for(g=a=i;g>=0;g-=1){d=n[g];if(g===f){if((a-g)%h&&C)C.label.text="";a=f}if(d&&d.label)(a-g)%h?d.label.text=
q:C=d}}},ea=l.placeHorizontalAxis=function(a,b,c,d,f,g,h){var j=c[ba],n=d&&d.chart||{},i,s,k,C,l,F,z,m,I,Q,Y=0,ca=0,N=10,x=1,v=0,u=v=0,ua=0,y=!1,w=!1,D=!1,r=e(n.labelstep,0),va=e(n.xaxisminlabelwidth,0),ra=b.labelDisplay,na=b.rotateLabels,ea=b.horizontalLabelPadding,oa=j.marginBottomExtraSpace;I=c.chart.marginLeft;var G=c.chart.marginRight,H=j.smartLabel,E=j.plotBorderThickness,ta=b.catCount,L=b.slantLabels,B=f/(a.max-a.min),M=0,Oa=0,u={w:0,h:0},P=d&&d.chart||{},d=e(P.updateinterval,P.refreshinterval)*
1E3,P=P.datastreamurl,Wa=Boolean(this.realtimeEnabled&&d&&P!==void 0);if(a.labels.style)F=a.labels.style,H.setStyle(F),m=H.getOriSize("W"),N=m.height,z=m.width+4,Q=H.getOriSize("WWW").width+4;var Z,O,K,R=[],d=[],V=0,X=0,$,ha,ia,Aa,P=b.horizontalAxisNamePadding;O=0;var Ea=b.staggerLines,ja=M,sa=!1,fa=!1;if(a.title&&a.title.text!=q)F=a.title.style,H.setStyle(F),v=H.getOriSize("W").height,a.title.rotation=0,C=H.getSmartText(a.title.text,f,g),ca=C.height;I!=parseInt(n.chartleftmargin,10)&&(i=!0);G!=parseInt(n.chartrightmargin,
10)&&(K=!0);n.canvaspadding!==void 0&&n.canvaspadding!==""&&(fa=!0);O=f-h;switch(ra){case "none":y=D=!0;na&&(Y=L?300:270,m=N,N=z,z=m);break;case "rotate":Y=L?300:270;m=N;N=z;z=m;y=!0;break;case "stagger":w=y=!0;h=Math.floor((g-v)/N);h<Ea&&(Ea=h);break;default:na&&(Y=L?300:270,m=N,N=z,z=m)}j.isBar&&(y=!0);n=0;h=a.plotLines;if(typeof c._FCconf.isXYPlot===pa&&!j.isBar){for($=h.length;n<$;n+=1)(s=h[n])&&(s.isGrid?R.push(s):s.isTrend&&d.push(s));na=a.plotBands;n=0;for($=na.length;n<$;n+=1)(s=na[n])&&d.push(s);
na=R.length-1;$=R.length;w&&(Ea>$?Ea=$:Ea<2&&(Ea=2));if($){a.scroll&&a.scroll.viewPortMin&&a.scroll.viewPortMax?(k=a.scroll.viewPortMin,Z=a.scroll.viewPortMax,K=i=!1):(k=a.min,Z=a.max);n=(R[na].value-R[0].value)*B;ha=n/(ta-1);ia=(R[0].value-k)*B;Aa=(Z-R[na].value)*B;ra==="auto"?ha<Q&&(Y=L?300:270,m=N,N=z,z=m,y=!0):ra==="stagger"&&(ha*=Ea);this.defaultSeriesType!=="line"&&(this.defaultSeriesType==="area"?j.drawFullAreaBorder&&(E>ia&&(k=a.min-=E/(2*B),ia+=(R[0].value-k)*B),E>Aa&&(Z=a.max+=E/(2*B),Aa+=
(Z-R[na].value)*B)):(E>ia&&(k=a.min-=E/(2*B),ia+=(R[0].value-k)*B),E>Aa&&(Z=a.max+=E/(2*B),Aa+=(Z-R[na].value)*B)));z<va&&(z=va);x=!w&&!D?Y?Math.max(1,r,Math.ceil(N/ha)):Math.max(1,r,Math.ceil(z/ha)):Math.max(1,r);if(j.x)j.x.stepValue=x;ha*=x;I=(ia+I)*2;if((l=h[0].label)&&l.text)l.style&&H.setStyle(l.style),Q=Y===270?Math.min(ha,H.getOriSize(l.text).height+4):Math.min(ha,H.getOriSize(l.text).width+4),Q>I&&(D||(V=(Q-I)/2),i||(fa&&(V=0),ha-=V/(ta-1),m=ha*(ta-1),B=ha,I=(n-m)/B,Z=a.max+=I,k=a.min-=I,
V=0,n=m,ia=(R[0].value-k)*B,Aa=(Z-R[na].value)*B));I=(Aa+G)*2;if((l=h[na].label)&&l.text)l.style&&H.setStyle(l.style),Q=Y===270?Math.min(ha,H.getOriSize(l.text).height+4):Math.min(ha,H.getOriSize(l.text).width+4),Q>I&&(D||(X=(Q-I)/2),K||(fa&&(X=0),ha-=X/(ta-1),m=ha*(ta-1),B=ha,I=(n-m)/B,X=0,n=m,ia=(R[0].value-k)*B,Aa=(Z-R[na].value)*B));n=V+X;if(n>0){O>n?(G=(G=X*f/(X+f))?G+4:0,c.chart.marginRight+=G,f-=G,G=(G=V*f/(V+f))?G+4:0,c.chart.marginLeft+=G,f-=G,B=f/(a.max-a.min)):V<X?O>=X&&K?(G=(G=X*f/(X+
f))?G+4:0,c.chart.marginRight+=G,f-=G,B=f/(a.max-a.min)):i&&(G=(G=V*f/(V+f))?G+4:0,c.chart.marginLeft+=G,f-=G,B=f/(a.max-a.min)):O>=V&&i?(G=(G=V*f/(V+f))?G+4:0,c.chart.marginLeft+=G,f-=G,B=f/(a.max-a.min)):K&&(G=(G=X*f/(X+f))?G+4:0,c.chart.marginRight+=G,f-=G,B=f/(a.max-a.min));n=(R[na].value-R[0].value)*B;ha=n/(ta-1);w&&(ha*=Ea);x=!w&&!D?Y?Math.max(1,r,Math.ceil(N/ha)):Math.max(1,r,Math.ceil(z/ha)):Math.max(1,r);if(j.x)j.x.stepValue=x;ha*=x}for(k=0;k<$;k+=1){s=R[k];if(k%x&&s.label){if(s.stepped=
!0,s.label.style=a.steppedLabels.style,!Wa)continue}else s.stepped=!1,s.label.style=a.labels.style;if(s&&s.label&&aa(s.label.text)!==void 0){l=s.label;if(l.style&&l.style!==F)F=l.style,H.setStyle(F);if(Y&&D)i=H.getOriSize(l.text),u.w=p(u.w,i.width+4),u.h=p(u.h,i.height);else if(!D)i=Y||w?H.getOriSize(l.text):H.getSmartText(l.text,ha-4,g,y),u.w=p(u.w,i.width+4),u.h=p(u.h,i.height)}}}k=0;for($=d.length;k<$;k+=1)if((s=d[k])&&s.label&&aa(s.label.text)!==void 0){l=s.label;if(l.style&&l.style!==F)F=l.style,
H.setStyle(F);i=H.getOriSize(l.text);l.verticalAlign===S?M=p(M,i.height):Oa=p(Oa,i.height)}a.scroll&&a.scroll.enabled&&!Y&&!D&&(I=u.w/2,c.chart.marginLeft<I&&(G=I-c.chart.marginLeft,O>G&&(f-=G,O-=G,c.chart.marginLeft+=G)),c.chart.marginRight<I&&(G=I-c.chart.marginRight,O>G&&(f-=G,O-=G,c.chart.marginRight+=G)))}else{var r={},xa,ra=X=0,E=fa=null,ta={},sa=!0,B=f/(a.max-a.min),va=function(b,d,e){var f,o,g,h,n,j;j=b.plotObj;n=b.labelTextWidth;if(!n){l=j.label;if(l.style&&l.style!==F)F=l.style,H.setStyle(F);
n=H.getOriSize(l.text).width+4;b.oriWidth=n;n>xa&&(n=xa);b.labelTextWidth=n;b.leftEdge=j.value*B-n/2;b.rightEdge=j.value*B+n/2;if(e)n=Math.min(n,2*(s.value-a.min)*B+c.chart.marginLeft),b.labelTextWidth=n}if(typeof d!==pa){e=d.plotObj;l=e.label;if(l.style&&l.style!==F)F=l.style,H.setStyle(F);d.oriWidth?g=d.oriWidth:(g=H.getOriSize(l.text).width+4,d.oriWidth=g);g>xa&&(g=xa);d.labelTextWidth=g;d.leftEdge=e.value*B-g/2;d.rightEdge=e.value*B+g/2;f=j.value*B;o=f+n/2;h=e.value*B;g=h-g/2;if(g<o)if(f+z<h-
z)o-=g,f=h-f,b.labelTextWidth=o>f?Math.min(n,f):Math.max(z,n-o/2),d.labelTextWidth=2*(f-b.labelTextWidth/2),b.leftEdge=j.value*B-b.labelTextWidth/2,b.rightEdge=j.value*B+b.labelTextWidth/2,d.leftEdge=e.value*B-d.labelTextWidth/2,d.rightEdge=e.value*B+d.labelTextWidth/2;else return d.labelTextWidth=0,e.label.text=q,!1}else if(e)n=Math.min(n,2*(a.max-s.value)*B+c.chart.marginRight),b.labelTextWidth=n,b.leftEdge=j.value*B-n/2,b.rightEdge=j.value*B+n/2;b.nextCat=d;return!0};w?Ea>$?Ea=$:Ea<2&&(Ea=2):Ea=
1;for($=h.length;n<$;n+=1)if((s=h[n])&&s.label&&typeof s.label.text!==pa)s.isGrid?(V={plotObj:s},s.isCat&&(na=n%Ea,r[na]||(r[na]=[]),fa?(E=V,r[na].push(E)):(E=fa=V,r[na].push(fa))),R.push(V)):s.isTrend&&d.push({plotObj:s});na=a.plotBands;n=0;for($=na.length;n<$;n+=1)(s=na[n])&&s.isTrend&&s.label&&typeof s.label.text!==pa&&d.push({plotObj:s});if(R.length)if(!D&&!Y)if(j.distributedColumns){n=0;for($=R.length;n<$;n+=1)if(k=R[n],K=n%Ea,s=k.plotObj,s.label&&s.isCat){n-Ea>=0?(i=R[n-Ea],K=i.plotObj.value*
B+i.plotObj._weight*B/2):(i=null,K=a.min*B-I);n+Ea<$?(m=R[n+Ea],m=m.plotObj.value*B-m.plotObj._weight*B/2):(m=null,m=a.max*B+G);l=s.label;if(l.style&&l.style!==F)F=l.style,H.setStyle(F);V=s.value*B;O=V-s._weight*B/2;V+=s._weight*B/2;Ea>1?(i=O-K,K=V+m,K=V-O+Math.min(i,K)):K=V-O;l=s.label;l.style&&l.style!==F&&H.setStyle(l.style);K<z&&z<H.getOriSize(l.text).width?(s.label.text=q,k.labelTextWidth=0):(k.labelTextWidth=K,i=H.getSmartText(l.text,K-4,g,y),K=i.width+4,k.labelTextWidth=K,u.h=Math.max(u.h,
i.height))}}else{$=R.length;na=R.length-1;(n=(R[na].plotObj.value-R[0].plotObj.value)*B)?(xa=n*0.1,Wa=Math.max(n*0.2,n/$)):Wa=xa=f;for(k in r){n=0;for(Q=r[k].length;n<Q;){for(V=n+1;!va(r[k][n],r[k][V]);)V+=1;n=V}}fa&&(ra=(fa.plotObj.value-a.min)*B+I-fa.labelTextWidth/2);s=R[0].plotObj;if(!fa||s!==fa.plotObj){l=s.label;if(l.style&&l.style!==F)F=l.style,H.setStyle(F);Q=H.getOriSize(l.text).width+4;V=(s.value-a.min)*B+I;fa&&(n=ra-V,Q=n<Q&&n>z/2?n*2:0);R[0].labelTextWidth=Q;Q>0&&(m=V-Q/2);m<ra&&(ra=m)}if(E)Q=
E.labelTextWidth,X=(a.max-E.plotObj.value)*B+G-Q/2;s=R[na].plotObj;if(!E||s!==E.plotObj){l=s.label;if(l.style&&l.style!==F)F=l.style,H.setStyle(F);Q=H.getOriSize(l.text).width+4;V=(a.max-s.value)*B+G;E&&(n=V-X,Q=n<Q&&n>z/2?n*2:0);R[na].labelTextWidth=Q;Q>0&&(m=V-Q/2);m<X&&(X=m)}V=ra<0?-ra:0;X=X<0?-X:0;n=V+X;if(n>0)for(k in O>n?(G=(G=X*f/(X+f))?G+4:0,c.chart.marginRight+=G,f-=G,G=(G=V*f/(V+f))?G+4:0,c.chart.marginLeft+=G,f-=G,B=f/(a.max-a.min)):V<X?O>=X&&K?(G=(G=X*f/(X+f))?G+4:0,c.chart.marginRight+=
G,f-=G,B=f/(a.max-a.min)):i&&(G=(G=V*f/(V+f))?G+4:0,c.chart.marginLeft+=G,f-=G,B=f/(a.max-a.min)):O>=V&&i?(G=(G=V*f/(V+f))?G+4:0,c.chart.marginLeft+=G,f-=G,B=f/(a.max-a.min)):K&&(G=(G=X*f/(X+f))?G+4:0,c.chart.marginRight+=G,f-=G,B=f/(a.max-a.min)),G=c.chart.marginRight,I=c.chart.marginLeft,n=(R[na].plotObj.value-R[0].plotObj.value)*B,xa=n*0.1,Wa=Math.max(n*0.2,n/$),r){n=0;for(Q=r[k].length;n<Q;){for(V=n+1;!va(r[k][n],r[k][V],!0);)V+=1;n=V}k+=1}n=0;for($=R.length;n<$;n+=1)if(k=R[n],K=n%Ea,s=k.plotObj,
s.label)if(s.isCat)k.labelTextWidth&&(ta[K]=k);else{m=(i=ta[K])?i.nextCat:r[K]?r[K][0]:null;i=null;if(n>=Ea){K=n-Ea;for(i=R[K];!i.labelTextWidth;)if(K>=Ea)K-=Ea,i=R[K];else{i=null;break}}K=i?i.rightEdge:a.min*B-I;m=m?m.leftEdge:a.max*B+G;l=s.label;if(l.style&&l.style!==F)F=l.style,H.setStyle(F);Q=H.getOriSize(l.text).width+4;O=s.value*B-Q/2;if(j.isBar&&n==$-1&&i){if(K>O)i.plotObj.label.text=q,i.labelTextWidth=0,K=i.leftEdge}else if(K>O||m<O+Q){s.label.text=q;k.labelTextWidth=0;continue}K=Math.max(K,
O);V=s.value*B;K=2*Math.min(V-K,m-V);K.toFixed&&(K=K.toFixed(2));l=s.label;l.style&&l.style!==F&&H.setStyle(l.style);K<z&&z<H.getOriSize(l.text).width?(s.label.text=q,k.labelTextWidth=0):(k.labelTextWidth=K,i=H.getSmartText(l.text,K-4,g,y),K=i.width+4,k.labelTextWidth=K,k.leftEdge=V-K/2,k.rightEdge=V+K/2,u.h=Math.max(u.h,i.height))}i=G=K=I=null;n=0;for($=R.length;n<$;n+=1)if(k=R[n],s=k.plotObj,K=n%Ea,s.isCat&&k.labelTextWidth){i=G=null;V=s.value*B;if(n>=Ea){K=n-Ea;for(i=R[K];!i.labelTextWidth;)if(K>
Ea)K-=Ea,i=R[K];else{i=null;break}}i=i?V-i.rightEdge:V-a.min*B+c.chart.marginLeft;if(n+Ea<$){I=n+Ea;for(G=R[I];!G.labelTextWidth;)if(I+Ea<$-1)I+=Ea,G=R[I];else{G=null;break}}K=G?G.leftEdge-V:a.max*B+c.chart.marginRight-V;K=Math.min(i,K)*2;K>Wa&&(K=Wa);if(K>k.oriWidth)K=k.oriWidth;k.labelTextWidth=K;l=s.label;l.style&&l.style!==F&&H.setStyle(l.style);i=H.getSmartText(l.text,K-4,g,y);k.labelTextWidth=i.width+4;u.h=Math.max(u.h,i.height);k.rightEdge=V+k.labelTextWidth/2}}else if(Y){n=0;for($=R.length;n<
$;n+=1)if((s=R[n].plotObj)&&s.label&&s.label.text){l=s.label;if(l.style&&l.style!==F)F=l.style,H.setStyle(F);k=1;if(n+k<$)for(G=R[k+n].plotObj;G&&(G.value-s.value)*B<z;)if(s.isCat){if(G.label){G.label.text=q;k+=1;if(k+n>=$-1)break;G=h[k+n].plotObj}}else if(G.isCat){s.label.text=q;s=G;n+=k-1;l=s.label;if(l.style&&l.style!==F)F=l.style,H.setStyle(F);break}u.w=Math.max(u.w,H.getOriSize(l.text).width+4)}}k=0;for($=d.length;k<$;k+=1)if((s=d[k].plotObj)&&s.label&&aa(s.label.text)!==void 0){l=s.label;if(l.style&&
l.style!==F)F=l.style,H.setStyle(F);i=H.getOriSize(l.text);l.verticalAlign===S?M=p(M,i.height):Oa=p(Oa,i.height)}}if(D){if(O=N,Y)O=u.w}else O=Y?u.w:w?Ea*N:u.h;O>0&&(ja+=ea+O);ca>0&&(ja+=ca+P);u=ea-4;ja=Oa+ja+2;m=0;ja>g&&(n=ja-g,P>n?(P-=n,n=0):(n-=P,P=0,u>n?(u-=n,differnece=0):(n-=u,u=0),ea=u+4),Oa>n?(Oa-=n,n=0):(Oa>0&&(n-=Oa,Oa=0),n>0&&(M>n?(M-=n,n=0):(M>0&&(n-=M,M=0),n>0&&((m=ca-v)>n?(ca-=n,n=0):(n-=m,ca=v,n>0&&((m=O-N)>n?(O-=n,n=0):(n-=m,O=N,n>0&&(n-=ca+P,ca=0,n>0&&(n-=O,O=0,n>0&&(ea-=n)))))))))));
ea+=oa;var G=j.is3d?-c.chart.xDepth:0,g=O+ea,ya,ja=G;I=N*0.5;v=N+ea;$=R.length;u=0;if(sa)if(Y){ha=U;ya=L?ea+8:ea+4;$=R.length;for(k=0;k<$;k+=1)if((s=R[k].plotObj)&&s.label&&aa(s.label.text)!==void 0){l=s.label;if(l.style&&l.style!==F)F=l.style,H.setStyle(F);n=1;i=H.getSmartText(l.text,O-4,z,y);l.text=i.text;i.tooltext&&(l.originalText=i.tooltext);ja=G+I/2;l.y=ya;l.x=ja;l.rotation=Y;l.textAlign=ha;u+=1}}else{sa=O;ha=t;ya=v;for(k=0;k<$;k+=x)if((s=R[k].plotObj)&&s.label&&aa(s.label.text)!==void 0){l=
s.label;if(l.style&&l.style!==F)F=l.style,H.setStyle(F);if(!D)i=H.getSmartText(l.text,R[k].labelTextWidth-4,sa,y),l.text=i.text,i.tooltext&&(l.originalText=i.tooltext),w&&(ya=v+u%Ea*N);l.y=ya;l.x=ja;l.rotation=Y;l.textAlign=ha;u+=1}}else{Y?(sa=ha,n=O-4,ha=U,ya=L?ea+8:ea+4):w?(sa=N,n=ha-4,ha=t):(sa=O,n=ha-4,ha=t,ya=v);for(k=0;k<$;k+=x)if((s=R[k])&&s.label&&aa(s.label.text)!==void 0){l=s.label;if(l.style&&l.style!==F)F=l.style,H.setStyle(F);if(!D)i=H.getSmartText(l.text,n,sa,y),l.text=i.text,i.tooltext&&
(l.originalText=i.tooltext),w&&(ya=v+u%Ea*N),Y&&(ja=G+I/2);l.y=ya;l.x=ja;l.rotation=Y;l.textAlign=ha;u+=1}b._labelY=v;b._labelX=G;b._yShipment=ya;b._isStagger=w;b._rotation=Y;b._textAlign=ha;b._adjustedPx=I/2;b._staggerLines=Ea;b._labelHeight=N}$=d.length;for(k=Y=b=0;k<$;k+=1)if((s=d[k].plotObj?d[k].plotObj:d[k])&&s.label&&aa(s.label.text)!==void 0){l=s.label;if(l.style&&l.style!==F)F=l.style,H.setStyle(F);l.verticalAlign===S?(i=H.getSmartText(l.text,f,M,!0),Y=Math.max(Y,i.height),l.text=i.text,i.tooltext&&
(l.originalText=i.tooltext),l.y=g+H.getOriSize(l.text).height,l.x=ja):(i=H.getSmartText(l.text,f,Oa,!0),b=Math.max(b,i.height),l.text=i.text,i.tooltext&&(l.originalText=i.tooltext),l.y=-(Oa-H.getOriSize("W").height+ea+2))}if(ca>0)H.setStyle(a.title.style),C=H.getSmartText(a.title.text,f,ca),a.title.text=C.text,C.tooltext&&(a.title.originalText=C.tooltext),a.title.margin=g+Y+P;ja=Y;if(O>0)j.horizontalAxisHeight=ea+O-oa,ja+=j.horizontalAxisHeight;ca>0&&(ja+=ua=ca+P);c.chart.marginBottom+=ja;b>0&&(c.chart.marginTop+=
b,ja+=b);if(a.opposite){a.title.margin-=O-(C&&C.height||0)+ea;ja-=ua;c.chart.marginTop+=ja;c.chart.marginBottom-=ja;c.xAxis.opposite=1;$=h.length;for(n=0;n<$;n+=1)if((s=h[n])&&s.isGrid&&(l=s.label)&&l.text!==void 0)l.textAlign=Na,l.y-=ya+ea+4}return ja},ca=l.configureLegendOptions=function(a,b,c,d,f){var d=a.legend,n=a.chart,j=n.paletteIndex,i=n.is3D?Y.chart3D:Y.chart2D,l=n.useRoundEdges,C=e(b.legendiconscale,1),s=(parseInt(d.itemStyle.fontSize,10)||10)+1,F=a.chart.defaultSeriesType,m=3;if(C<=0||
C>5)C=1;d.padding=4;s<=0&&(s=1);f-=8;s*=C;m*=C;s=Math.min(s,f);s<=0&&(m=s=0);d.symbolWidth=s;d.symbolPadding=m;d.textPadding=4;d.legendHeight=f=s+2*m;d.rowHeight=Math.max(parseInt(d.itemStyle.lineHeight,10)||12,f);c?(d.align=U,d.verticalAlign="middle",d.layout="vertical"):d.x=(n.marginLeft-n.spacingLeft-n.marginRight+n.spacingRight)/2;c=h(b.legendbordercolor,k[i.legendBorderColor][j]);f=e(b.legendborderalpha,100);n=e(b.legendbgalpha,100);d.backgroundColor=g(h(b.legendbgcolor,k[i.legendBgColor][j]),
n);d.borderColor=g(c,f);d.borderWidth=e(b.legendborderthickness,!l||b.legendbordercolor?1:0);d.shadow=Boolean(e(b.legendshadow,1));if(d.shadow)d.shadow={enabled:d.shadow,opacity:p(f,n)/100};d.reversed=Boolean(e(b.reverselegend,0));if(/^pie|pie3d$/.test(F))d.reversed=!d.reversed;d.style={padding:4};Boolean(e(b.interactivelegend,1))?d.symbolStyle={_cursor:"hand",cursor:"pointer"}:(a.legend.interactiveLegend=!1,d.itemStyle.cursor="default",d.itemHoverStyle={cursor:"inherit"});d.borderRadius=e(b.legendborderradius,
l?3:0);d.legendAllowDrag=Boolean(e(b.legendallowdrag,0));d.title.text=D(r(b.legendcaption,q));d.legendScrollBgColor=y(h(b.legendscrollbgcolor,k.altHGridColor[a.chart.paletteIndex]));d.legendScrollBarColor=h(b.legendscrollbarcolor,c);d.legendScrollBtnColor=h(b.legendscrollbtncolor,c);d.title.style=E({fontWeight:"bold"},d.itemStyle)},fa=l.placeLegendBlockRight=function(a,b,c,d,f){ca(a,b.chart,!0,f,c);var g=0,h=a.series,n,j=a[ba],i=j.smartLabel,k=a.legend,l,C=k.textPadding,F=k.title.padding,m=k.symbolWidth+
2*k.symbolPadding,z=d*2,I=0,b=e(b.chart.legendpadding,7)+k.borderWidth/2+e(b.chart.canvasborderthickness,1),Q=2*k.padding,p={width:Q,height:Q},Y=!1,N=[];c-=Q;f&&(h=h&&h[0]&&h[0].data);if(typeof h===pa||typeof h.length===pa)return 0;else{f=h.length;for(g=0;g<f;g+=1)if((n=h[g])&&n.showInLegend!==!1)n.__i=g,N.push(n);N.sort(function(a,b){return a.legendIndex-b.legendIndex||a.__i-b.__i});f=N.length}l=c-m-2-C;l<0&&(l=0);i.setStyle(k.itemStyle);k.reversed&&N.reverse();for(g=0;g<f;g+=1)if(n=N[g],Y=!0,n._legendX=
0,n._legendY=p.height,l===0)p.height+=n._legendH=m,n.name=q;else{h=i.getSmartText(n.name,l,z);n.name=h.text;h.tooltext&&(n.originalText=h.tooltext);if(h.height<m)n._legendTestY=(m-h.height)/2;p.height+=n._legendH=Math.max(h.height,m);I=Math.max(h.width,I)}if(Y){k.itemWidth=I+m+2+C;k.width=k.itemWidth+Q;if(k.title.text!==q){i.setStyle(k.title.style);h=i.getSmartText(k.title.text,c,z);k.title.text=h.text;h.tooltext&&(k.title.originalText=h.tooltext);g=h.width+Q;if(k.width<g)k.initialItemX=(g-k.width)/
2,k.width=g;k.initialItemY=h.height+F;p.height+=k.initialItemY}k.height=k.totalHeight=p.height;if(k.height>d)k.height=d,k.scroll.enabled=!0,k.scroll.flatScrollBars=j.flatScrollBars,k.scroll.scrollBar3DLighting=j.scrollBar3DLighting,k.width+=(k.scroll.scrollBarWidth=10)+(k.scroll.scrollBarPadding=2);b=Math.min(k.width+b,c);a.chart.marginRight+=b;return b}else return k.enabled=!1,0},x=l.placeLegendBlockBottom=function(a,b,c,d,f){ca(a,b.chart,!1,f,c);var g=0,h=a.series,n,j=a[ba],i=j.smartLabel,k=a.legend,
l,C=k.textPadding;n=k.title.padding;var F,m=k.symbolPadding;l=k.legendHeight;var z=b.chart;F=0;var I=d*2,Q=k.rowHeight,p=[],Y=e(z.minimisewrappinginlegend,0),z=e(parseInt(z.legendnumcolumns,10),0),N=0,u=0,x=0,v=g=0,G=2*k.padding,b=e(b.chart.legendpadding,7)+k.borderWidth/2+1,y={width:G,height:G},ua=!1,w,r=[];z<0&&(z=0);c-=G;i.setStyle(k.itemStyle);g=i.getOriSize(Ca).height;b=Math.min(b,d-g-8);d-=b;f&&(h=h&&h[0]&&h[0].data);if(typeof h===pa||typeof h.length===pa)return 0;else{f=h.length;for(g=0;g<
f;g+=1)if((w=h[g])&&w.showInLegend!==!1)w.__i=g,r.push(w);r.sort(function(a,b){return a.legendIndex-b.legendIndex||a.__i-b.__i});f=r.length}i.setStyle(k.itemStyle);for(g=0;g<f;g+=1)ua=!0,h=i.getOriSize(r[g].name),N=Math.max(N,h.width),u+=h.width,x+=1;g=u/x;if(ua){g+=l+2+C;N+=l+2+C;z>0&&x<z&&(z=x);z>0&&(v=c/z)>g?v>N&&(v=N):c>N&&(Y||g*1.5>N)?(z=Math.floor(c/N),x<z&&(z=x),v=N):c>=2*g?(z=Math.floor(c/g),x<z&&(z=x),v=Math.floor(c/z),v>N&&(v=N)):(z=1,v=c);k.itemWidth=v;l=v-l-2-C;l<0&&(m=l=C=0);k.symbolPadding=
m;k.textPadding=C;k.width=v*z+G;if(k.title.text!==q){i.setStyle(k.title.style);h=i.getSmartText(k.title.text,c,I);k.title.text=h.text;h.tooltext&&(k.title.originalText=h.tooltext);F=h.width+G;if(k.width<F)k.initialItemX=(F-k.width)/2,k.width=F;k.initialItemY=F=h.height+n}i.setStyle(k.itemStyle);C=0;k.reversed&&r.reverse();for(g=0;g<f;g+=1){n=r[g];if(l===0)p[C]=!0,n.name=q,c=1;else{h=i.getSmartText(n.name,l,I);n.name=h.text;for(h.tooltext&&(n.originalText=h.tooltext);p[C]===!0;)C+=1;m=h.height/Q;Y=
C;for(c=0;c<m;c+=1,Y+=z)p[Y]=!0;if(h.height<Q)n._legendTestY=(Q-h.height)/2}m=parseInt(C/z,10);h=C%z;n._legendX=h*v;n._legendY=m*Q+G;n._legendH=c*Q;C+=1}y.height+=Math.ceil(p.length/z)*Q+F;k.height=k.totalHeight=y.height;k.rowHeight=Q;k.legendNumColumns=z;if(k.height>d)k.height=d,k.scroll.enabled=!0,k.scroll.flatScrollBars=j.flatScrollBars,k.scroll.scrollBar3DLighting=j.scrollBar3DLighting,k.width+=(k.scroll.scrollBarWidth=10)+(k.scroll.scrollBarPadding=2);b+=k.height;a.chart.marginBottom+=b;return b}else return k.enabled=
!1,0},ra=function(a,b){return a.value-b.value},ta=l.adjustVerticalAxisTitle=function(a,b,c){if(b&&b.text){var d=b.text,e=a[ba].smartLabel,f=2*Math.min(a.chart.marginTop,a.chart.marginBottom)+c,g=c+a.chart.marginTop+a.chart.marginBottom;b.style&&e.setStyle(b.style);d=e.getOriSize(d);if(b.centerYAxisName===void 0)b.centerYAxisName=!0;if(b.rotation=="0"){if(d.height>f)b.y=(g/2-(c/2+a.chart.marginTop))/2,b.centerYAxisName=!1}else if(d.width>f)b.y=g/2-(c/2+a.chart.marginTop),b.centerYAxisName=!1}},oa=
l.adjustVerticalCanvasMargin=function(a,b,c,d){var f=b.chart,g=b=0,h=0,n=e(f.canvastopmargin,0),f=e(f.canvasbottommargin,0),j=n/(n+f),i=a.chart.marginTop,k=a.chart.marginBottom;f>k&&(b+=f-k);n>i&&(b+=n-i);b>c?n>i&&f>k?(g=c*j,h=c*(1-j)):n>i?g=c:h=c:b>0&&(f>k&&(h=f-k),n>i&&(g=n-i));g&&(a.chart.marginTop+=g);h&&(a.chart.marginBottom+=h,d&&d.title&&(d.title.margin+=h));return g+h},G=l.adjustHorizontalCanvasMargin=function(a,b,c,d,f){var g=b.chart,b=e(g.canvasleftmargin,0),g=e(g.canvasrightmargin,0),h=
b/(b+g),n=0,j=a.chart.marginLeft,i=a.chart.marginRight,k=0,l=0;b>j&&(n+=b-j);g>i&&(n+=g-i);n>c?b>j&&g>i?(k=c*h,l=c*(1-h)):g>i?l=c:k=c:n>0&&(b>j&&(k=b-j),g>i&&(l=g-i));k&&(a.chart.marginLeft+=k,d&&d.title&&(d.title.margin+=k));l&&(a.chart.marginRight+=l,f&&f.title&&(f.title.margin+=l));return l+k};$("base",{useScaleRecursively:!0,tooltipConstraint:"chart",rendererId:"root",draw:function(a,b){var c=this,d=c.renderer,e=c.chartInstance.jsVars,f="reinit",g=new Date;c.drawingLatency=c.drawingLatency||0;
if(!d)e._lastpaper&&(e._lastpaper=e._lastpaper.dispose()),f="init",d=c.renderer=new $("renderer."+c.rendererId);return d[f](c,a,function(){e._lastpaper=d;c.drawingLatency=new Date-g;b&&b.apply(this,arguments)})},init:function(a,b,c){var d=this.chartInstance||c,f=d.jsVars,c=f._reflowData||(f._reflowData={}),g=f._reflowClean,h,n;this.dataObj=b=E({},b);n=b.chart=b.chart||b.graph||b.map||{};delete b.graph;delete b.map;if(c&&!this.stateless)h=c.hcJSON,delete c.hcJSON,E(this,c,!0),this.preReflowAdjustments&&
this.preReflowAdjustments.call(this),c.hcJSON=h;this.containerElement=a;this.config={};this.smartLabel=new ab(d.id,document.getElementsByTagName("body")[0]||a,e(n.useellipseswhenoverflow,n.useellipsewhenoverflow,1));this.linkClickFN=Za(b,d);this.numberFormatter=new eb(b.chart,this);if(!this.standaloneInit)return new l.createDialog(a,f.msgStore.ChartNotSupported);a=this.chart(a.offsetWidth||parseFloat(a.style.width),a.offsetHeight||parseFloat(a.style.height),d);c&&!this.stateless&&(c.hcJSON&&E(a,c.hcJSON,
!0),this.postReflowAdjustments&&this.postReflowAdjustments.call(this),g&&this.cleanedData&&(this.cleanedData(this,g),this.cleanedData(c,g)));return a},chart:function(c,d){var A;var f=this.name,n=this.dataObj,o=n.chart,i,l,C,F,z,s,m=this.defaultSeriesType,I,Q,N,ca,x,G,w,r;i=ua(n,c,d,this);r=i.chart;w=i.xAxis;I=i[ba];this.postHCJSONCreation&&this.postHCJSONCreation.call(this,i);i.labels.smartLabel=s=I.smartLabel=this.smartLabel;I.width=c;I.height=d;Q=i.plotOptions;I.isDual=this.isDual;I.numberFormatter=
this.numberFormatter;I.axisGridManager=new Ia(m,o);r.is3D=l=I.is3d=/3d$/.test(m);r.isBar=F=I.isBar=this.isBar;C=/^pie/.test(m);G=o.useroundedges==1;x=l?Y.chart3D:Y.chart2D;r.events.click=i.plotOptions.series.point.events.click=this.linkClickFN;r.defaultSeriesType=m;var t=o.palette>0&&o.palette<6?o.palette:e(this.paletteIndex,1);t-=1;r.paletteIndex=t;r.usePerPointLabelColor=o.colorlabelsfromplot==ya;r.useRoundEdges=G&&!l&&!this.distributedColumns&&this.defaultSeriesType!=="pie";if(h(o.clickurl)!==
void 0)r.link=o.clickurl,r.style.cursor="pointer",i.plotOptions.series.point.events.click=function(){r.events.click.call({link:o.clickurl})};var na=h(o.basefont,"Verdana"),ra=b(o.basefontsize,10),ea=h(o.basefontcolor,k[x.baseFontColor][t]);N=h(o.outcnvbasefont,na);var va=b(o.outcnvbasefontsize,ra),B=va+Ja,oa=h(o.outcnvbasefontcolor,ea).replace(/^#?([a-f0-9]+)/ig,"#$1"),ta;ra+=Ja;ea=ea.replace(/^#?([a-f0-9]+)/ig,"#$1");I.trendStyle=I.outCanvasStyle={fontFamily:N,color:oa,fontSize:B};z=v(I.trendStyle);
I.inCanvasStyle={fontFamily:na,fontSize:ra,color:ea};ta=v(I.inCanvasStyle);I.divlineStyle={fontFamily:na,fontSize:ra,color:ea,lineHeight:ta};w.labels.style={fontFamily:N,fontSize:B,lineHeight:z,color:oa};w.steppedLabels.style={fontFamily:N,fontSize:B,lineHeight:z,color:oa,visibility:"hidden"};i.yAxis[0].labels.style={fontFamily:N,fontSize:B,lineHeight:z,color:oa};i.yAxis[1].labels.style={fontFamily:N,fontSize:B,lineHeight:z,color:oa};i.legend.itemStyle={fontFamily:N,fontSize:B,lineHeight:z,color:oa};
i.legend.itemHiddenStyle={fontFamily:N,fontSize:B,lineHeight:z};i.plotOptions.series.dataLabels.style={fontFamily:na,fontSize:ra,lineHeight:ta,color:ea};i.plotOptions.series.dataLabels.color=i.plotOptions.series.dataLabels.style.color;i.tooltip.style={fontFamily:na,fontSize:ra,lineHeight:ta,color:ea};i.title.style={fontFamily:N,color:oa,fontSize:va+3+Ja,fontWeight:e(o.captionfontbold)===0?"normal":"bold"};v(i.title.style);i.subtitle.style={fontFamily:N,color:oa,fontSize:va+e(this.subTitleFontSizeExtender,
1)+Ja,fontWeight:aa(this.subTitleFontWeight,"bold")};v(i.subtitle.style);w.title.style={fontFamily:N,color:oa,fontSize:B,fontWeight:e(o.subcaptionfontbold)===0?"normal":"bold"};na=v(w.title.style);i.yAxis[0].title.style={fontFamily:N,color:oa,fontSize:B,lineHeight:na,fontWeight:"bold"};i.yAxis[1].title.style={fontFamily:N,color:oa,fontSize:B,lineHeight:na,fontWeight:"bold"};r.overlapColumns=e(o[F&&"overlapbars"||"overlapcolumns"],0);i.orphanStyles={defaultStyle:{style:E({},I.inCanvasStyle)},connectorlabels:{style:E({},
i.plotOptions.series.dataLabels)},vyaxisname:{style:E({},i.yAxis[0].title.style)}};this.parseStyles(i);delete i.xAxis.labels.style.backgroundColor;delete i.xAxis.labels.style.borderColor;delete i.yAxis[0].labels.style.backgroundColor;delete i.yAxis[0].labels.style.borderColor;delete i.yAxis[1].labels.style.backgroundColor;delete i.yAxis[1].labels.style.borderColor;I.showTooltip=e(o.showtooltip,this.showtooltip,1);I.tooltipSepChar=h(o.tooltipsepchar,this.tooltipsepchar,Va);I.showValues=e(o.showvalues,
this.showValues,1);I.seriesNameInToolTip=e(o.seriesnameintooltip,1);I.showVLines=e(o.showvlines,1);I.showVLinesOnTop=e(o.showvlinesontop,0);I.showVLineLabels=e(o.showvlinelabels,this.showVLineLabels,1);I.showVLineLabelBorder=e(o.showvlinelabelborder,1);I.rotateVLineLabels=e(o.rotatevlinelabels,0);I.vLineColor=h(o.vlinecolor,"333333");I.vLineThickness=h(o.vlinethickness,1);I.vLineAlpha=e(o.vlinealpha,80);I.vLineLabelBgColor=h(o.vlinelabelbgcolor,"ffffff");I.vLineLabelBgAlpha=e(o.vlinelabelbgalpha,
l?50:100);I.trendlineColor=h(o.trendlinecolor,"333333");I.trendlineThickness=h(o.trendlinethickness,1);I.trendlineAlpha=e(o.trendlinealpha);I.showTrendlinesOnTop=h(o.showtrendlinesontop,0);I.trendlineValuesOnOpp=h(o.trendlinevaluesonopp,o.trendlinevaluesonright,0);I.trendlinesAreDashed=e(o.trendlinesaredashed,0);I.trendlinesDashLen=e(o.trendlinedashlen,5);I.trendlinesDashGap=e(o.trendlinedashgap,2);I.showTrendlines=e(o.showtrendlines,1);I.showTrendlineLabels=e(o.showtrendlinelabels,this.showTrendlineLabels,
1);I.flatScrollBars=e(o.flatscrollbars,0);I.scrollBar3DLighting=e(o.scrollbar3dlighting,1);i.plotOptions.series.connectNullData=e(o.connectnulldata,0);r.backgroundColor={FCcolor:{color:h(o.bgcolor,k[x.bgColor][t]),alpha:h(o.bgalpha,k[x.bgAlpha][t]),angle:h(o.bgangle,k[x.bgAngle][t]),ratio:h(o.bgratio,k[x.bgRatio][t])}};r.borderRadius=e(o.borderradius,0);r.rotateValues=e(o.rotatevalues,0);r.placeValuesInside=e(o.placevaluesinside,0);r.valuePosition=h(o.valueposition,"auto");r.valuePadding=e(o.valuepadding,
2);r.borderColor=g(h(o.bordercolor,l?"#666666":k.borderColor[t]),h(o.borderalpha,l?"100":k.borderAlpha[t]));N=e(o.showborder,l?0:1);r.borderWidth=N?e(o.borderthickness,1):0;r.plotBorderColor=g(h(o.canvasbordercolor,k.canvasBorderColor[t]),h(o.canvasborderalpha,k.canvasBorderAlpha[t]));o.showcanvasborder!="0"&&(ca=Boolean(h(o.canvasborderthickness,G?0:1)));r.plotBorderWidth=l||!ca?0:e(o.canvasborderthickness,this.canvasborderthickness,r.useRoundEdges?1:2);r.bgSWF=h(o.bgimage,o.bgswf);r.bgSWFAlpha=
e(o.bgimagealpha,o.bgswfalpha,100);G=h(o.bgimagedisplaymode,"none").toLowerCase();N=aa(o.bgimagevalign,q).toLowerCase();B=aa(o.bgimagehalign,q).toLowerCase();G=="tile"||G=="fill"||G=="fit"?(N!=u&&N!="middle"&&N!=S&&(N="middle"),B!=Na&&B!="middle"&&B!=U&&(B="middle")):(N!=u&&N!="middle"&&N!=S&&(N=u),B!=Na&&B!="middle"&&B!=U&&(B=Na));r.bgImageDisplayMode=G;r.bgImageVAlign=N;r.bgImageHAlign=B;r.bgImageScale=e(o.bgimagescale,100);r.logoURL=aa(o.logourl);r.logoPosition=h(o.logoposition,"tl").toLowerCase();
r.logoAlpha=e(o.logoalpha,100);r.logoLink=aa(o.logolink);r.logoScale=e(o.logoscale,100);r.logoLeftMargin=e(o.logoleftmargin,0);r.logoTopMargin=e(o.logotopmargin,0);G=r.toolbar={button:{}};N=G.button;N.scale=e(o.toolbarbuttonscale,1.15);N.width=e(o.toolbarbuttonwidth,15);N.height=e(o.toolbarbuttonheight,15);N.radius=e(o.toolbarbuttonradius,2);N.spacing=e(o.toolbarbuttonspacing,5);N.fill=g(h(o.toolbarbuttoncolor,"ffffff"));N.labelFill=g(h(o.toolbarlabelcolor,"cccccc"));N.symbolFill=g(h(o.toolbarsymbolcolor,
"ffffff"));N.hoverFill=g(h(o.toolbarbuttonhovercolor,"ffffff"));N.stroke=g(h(o.toolbarbuttonbordercolor,"bbbbbb"));N.symbolStroke=g(h(o.toolbarsymbolbordercolor,"9a9a9a"));N.strokeWidth=e(o.toolbarbuttonborderthickness,1);N.symbolStrokeWidth=e(o.toolbarsymbolborderthickness,1);B=N.symbolPadding=e(o.toolbarsymbolpadding,5);N.symbolHPadding=e(o.toolbarsymbolhpadding,B);N.symbolVPadding=e(o.toolbarsymbolvpadding,B);B=G.position=h(o.toolbarposition,"tr").toLowerCase();switch(B){case "tr":case "tl":case "br":case "bl":break;
default:B="tr"}N=G.hAlign=(q+o.toolbarhalign).toLowerCase()==="left"?"l":B.charAt(1);A=G.vAlign=(q+o.toolbarvalign).toLowerCase()==="bottom"?"b":B.charAt(0),B=A;G.hDirection=e(o.toolbarhdirection,N==="r"?-1:1);G.vDirection=e(o.toolbarvdirection,B==="b"?-1:1);G.vMargin=e(o.toolbarvmargin,6);G.hMargin=e(o.toolbarhmargin,10);G.x=e(o.toolbarx,N==="l"?0:c);G.y=e(o.toolbary,B==="t"?0:d);ra=h(o.divlinecolor,k[x.divLineColor][t]);na=h(o.divlinealpha,l?k.divLineAlpha3D[t]:k.divLineAlpha[t]);G=e(o.divlinethickness,
1);N=Boolean(e(o.divlineisdashed,this.divLineIsDashed,0));B=e(o.divlinedashlen,4);oa=e(o.divlinedashgap,2);i.yAxis[0].gridLineColor=g(ra,na);i.yAxis[0].gridLineWidth=G;i.yAxis[0].gridLineDashStyle=N?H(B,oa,G):void 0;i.yAxis[0].alternateGridColor=F?g(h(o.alternatevgridcolor,k.altVGridColor[t]),e(o.showalternatevgridcolor,1)===1?h(o.alternatevgridalpha,k.altVGridAlpha[t]):xa):g(h(o.alternatehgridcolor,k.altHGridColor[t]),o.showalternatehgridcolor==0?0:h(o.alternatehgridalpha,k.altHGridAlpha[t]));ea=
e(o.vdivlinethickness,1);va=Boolean(e(o.vdivlineisdashed,0));z=e(o.vdivlinedashlen,4);ta=e(o.vdivlinedashgap,2);w.gridLineColor=g(h(o.vdivlinecolor,k[x.divLineColor][t]),h(o.vdivlinealpha,k.divLineAlpha[t]));w.gridLineWidth=ea;w.gridLineDashStyle=va?H(z,ta,ea):void 0;w.alternateGridColor=g(h(o.alternatevgridcolor,k.altVGridColor[t]),o.showalternatehgridcolor==="1"?h(o.alternatevgridalpha,k.altVGridAlpha[t]):0);var ea=h(o.canvasbgcolor,k[x.canvasBgColor][t]),L,va=h(o.canvasbgalpha,k.canvasBgAlpha[t]);
h(o.showcanvasbg,ya)==xa&&(va="0");i.plotOptions.series.shadow=e(o.showshadow,o.showcolumnshadow,this.defaultPlotShadow,k.showShadow[t]);if(this.inversed)i.yAxis[0].reversed=!0,i.yAxis[1].reversed=!0;if(this.isStacked)this.distributedColumns?(I.showStackTotal=Boolean(e(o.showsum,1)),z=e(o.usepercentdistribution,1),ta=e(o.showpercentvalues,0),L=e(o.showpercentintooltip,z,0),I.showXAxisPercentValues=e(o.showxaxispercentvalues,1)):(I.showStackTotal=Boolean(e(this.showSum,o.showsum,0)),z=e(this.stack100percent,
o.stack100percent,0),ta=e(o.showpercentvalues,z,0),L=e(o.showpercentintooltip,ta)),I.showPercentValues=ta,I.showPercentInToolTip=L,z?(I.isValueAbs=!0,Q[m].stacking="percent",I[0].stacking100Percent=!0):Q[m].stacking="normal";if(this.isDual){if(o.primaryaxisonleft==="0")i.yAxis[0].opposite=!0,i.yAxis[1].opposite=!1;i.yAxis[0].showAlways=!0;i.yAxis[1].showAlways=!0}if(r.useRoundEdges){i.plotOptions.series.shadow=e(o.showshadow,o.showcolumnshadow,1);i.plotOptions.series.borderRadius=1;i.tooltip.style.borderRadius=
"2px";r.plotBorderRadius=3;if(!ca)r.plotBorderWidth=0;r.plotShadow=i.plotOptions.series.shadow?{enabled:!0,opacity:va/100}:0}if(e(o.use3dlighting,1)===1)i.legend.lighting3d=!0;i.plotOptions.series.userMaxColWidth=F?o.maxbarheight:e(o.maxcolwidth,this.maxColWidth);i.plotOptions.series.maxColWidth=Math.abs(e(i.plotOptions.series.userMaxColWidth,50))||1;i.title.text=D(o.caption);i.subtitle.text=D(o.subcaption);if(e(o.showtooltip,this.showtooltip)==0)i.tooltip.enabled=!1;m=i.tooltip.style;m.backgroundColor=
g(h(m.backgroundColor,o.tooltipbgcolor,k.toolTipBgColor[t]),h(o.tooltipbgalpha,100));m.borderColor=g(h(m.borderColor,o.tooltipbordercolor,k.toolTipBorderColor[t]),h(o.tooltipborderalpha,100));i.tooltip.shadow=e(o.showtooltipshadow,o.showshadow,1)?{enabled:!0,opacity:p(e(o.tooltipbgalpha,100),e(o.tooltipborderalpha,100))/100}:!1;i.tooltip.constrain=e(o.constraintooltip,1);m.borderWidth=e(o.tooltipborderthickness,1)+"px";if(o.tooltipborderradius)m.borderRadius=e(o.tooltipborderradius,1)+"px";m.padding=
e(o.tooltippadding,this.tooltippadding,3)+"px";if(o.tooltipcolor)m.color=y(o.tooltipcolor);I.userPlotSpacePercent=i.plotOptions.series.userPlotSpacePercent=o.plotspacepercent;m=e(o.plotspacepercent,20)%100;I.plotSpacePercent=i.plotOptions.series.groupPadding=m/200;l&&!C?(r.series2D3Dshift=f==="mscombi3d"?!0:Boolean(e(o.use3dlineshift,0)),r.canvasBaseColor3D=h(o.canvasbasecolor,k.canvasBaseColor3D[t]),r.canvasBaseDepth=e(o.canvasbasedepth,10),r.canvasBgDepth=e(o.canvasbgdepth,3),r.showCanvasBg=Boolean(e(o.showcanvasbg,
1)),r.showCanvasBase=Boolean(e(o.showcanvasbase,1)),F?(r.xDepth=5,r.yDepth=5,r.showCanvasBg&&(I.marginTopExtraSpace+=r.canvasBgDepth),I.marginLeftExtraSpace+=r.yDepth+(r.showCanvasBase?r.canvasBaseDepth:0),I.marginBottomExtraSpace+=5):(r.xDepth=10,r.yDepth=10,r.showCanvasBg&&(I.marginRightExtraSpace+=r.canvasBgDepth),I.marginBottomExtraSpace+=r.yDepth+(r.showCanvasBase?r.canvasBaseDepth:0)),ea=ea.split(V)[0],va=va.split(V)[0],r.use3DLighting=Boolean(e(o.use3dlighting,1)),r.plotBackgroundColor=r.use3DLighting?
{FCcolor:{color:j(ea,85)+V+a(ea,55),alpha:va+V+va,ratio:Pa,angle:$a(c-(r.marginLeft+r.marginRight),d-(r.marginTop+r.marginBottom),1)}}:g(ea,va),r.canvasBgColor=g(j(ea,80),va),C=h(o.zeroplanecolor,o.divlinecolor,k[x.divLineColor][t]),F=h(o.zeroplanealpha,o.divlinealpha,k.divLineAlpha[t]),r.zeroPlaneColor=g(C,F),r.zeroPlaneBorderColor=g(h(o.zeroplanebordercolor,C),e(o.zeroplaneshowborder,1)?F:0)):(r.is3D=!1,r.plotBackgroundColor={FCcolor:{color:ea,alpha:va,angle:h(o.canvasbgangle,k.canvasBgAngle[t]),
ratio:h(o.canvasbgratio,k.canvasBgRatio[t])}});this.parseExportOptions(i);this.preSeriesAddition&&this.preSeriesAddition(i,n,c,d);this.series&&this.series(n,i,f,c,d);this.postSeriesAddition(i,n,c,d);this.spaceManager(i,n,c,d);this.postSpaceManager&&this.postSpaceManager(i,n,c,d);f=e(o.drawquadrant,0);if(I.isXYPlot&&f&&(z=w.min,ta=w.max,Q=i.yAxis[0].min,ca=i.yAxis[0].max,L=e(o.quadrantxval,(z+ta)/2),ea=e(o.quadrantyval,(Q+ca)/2),ea>=Q&&ea<=ca&&L>=z&&L<=ta)){var m=g(h(o.quadrantlinecolor,r.plotBorderColor),
h(o.quadrantlinealpha,Aa)),va=e(o.quadrantlinethickness,r.plotBorderWidth),M=e(o.quadrantlineisdashed,0),K=e(o.quadrantlinedashLen,4),Oa=e(o.quadrantlinedashgap,2);F=aa(o.quadrantlabeltl,q);f=aa(o.quadrantlabeltr,q);n=aa(o.quadrantlabelbl,q);C=aa(o.quadrantlabelbr,q);x=e(o.quadrantlabelpadding,3);M=M?H(K,Oa,va):void 0;w.plotLines.push({color:m,value:L,width:va,dashStyle:M,zIndex:3});i.yAxis[0].plotLines.push({color:m,value:ea,width:va,dashStyle:M,zIndex:3});va=c-r.marginRight-r.marginLeft;M=d-r.marginTop-
r.marginBottom;m=I.inCanvasStyle;parseInt(m.fontSize,10);z=va/(ta-z)*(L-z);ta=va-z;ca=M/(ca-Q)*(ea-Q);Q=M-ca;z-=x;ta-=x;Q-=x;ca-=x;ea=x+Ja;L=M-x+Ja;M=x+Ja;x=va-x+Ja;s.setStyle(m);Q>0&&(F!==q&&z>0&&(F=s.getSmartText(F,z,Q),i.labels.items.push({html:F.text,zIndex:3,vAlign:u,style:{left:M,top:ea,fontSize:m.fontSize,lineHeight:m.lineHeight,fontFamily:m.fontFamily,color:m.color}})),f!==q&&ta>0&&(F=s.getSmartText(f,ta,Q),i.labels.items.push({html:F.text,textAlign:U,vAlign:u,zIndex:3,style:{left:x,top:ea,
fontSize:m.fontSize,lineHeight:m.lineHeight,fontFamily:m.fontFamily,color:m.color}})));ca>0&&(n!==q&&z>0&&(F=s.getSmartText(n,z,ca),i.labels.items.push({html:F.text,vAlign:S,zIndex:3,style:{left:M,top:L,fontSize:m.fontSize,lineHeight:m.lineHeight,fontFamily:m.fontFamily,color:m.color}})),C!==q&&ta>0&&(F=s.getSmartText(C,ta,ca),i.labels.items.push({html:F.text,textAlign:U,vAlign:S,zIndex:3,style:{left:x,top:L,fontSize:m.fontSize,lineHeight:m.lineHeight,fontFamily:m.fontFamily,color:m.color}})))}if(this.hasVDivLine&&
(f=e(o.numvdivlines,0)+1,f>1)){I=I.x.catCount-1;s=w.max;f=I/f;n=!0;C=w.min;var O;w.scroll&&!isNaN(w.scroll.viewPortMax)&&(s=w.scroll.viewPortMax);ra=h(o.vdivlinecolor,ra);na=e(o.vdivlinealpha,na);ea=e(o.vdivlinethickness,G);va=e(o.vdivlineisdashed,N);z=e(o.vdivlinedashlen,B);ta=e(o.vdivlinedashgap,oa);(G=e(o.showalternatevgridcolor,0))&&(O=g(h(o.alternatevgridcolor,k.altVGridColor[t]),h(o.alternatevgridalpha,k.altVGridAlpha[t])));for(t=f;t<I;t+=f,n=!n)n&&G&&w.plotBands.push({isNumVDIV:!0,color:O,
from:C,to:t,zIndex:1}),w.plotLines.push({isNumVDIV:!0,width:ea,color:g(ra,na),dashStyle:va?H(z,ta,ea):void 0,value:t,zIndex:1}),C=t;n&&G&&w.plotBands.push({isNumVDIV:!0,color:O,from:C,to:s,zIndex:1})}if(l&&r.xDepth>r.marginLeft)r.marginLeft=r.xDepth;window.console&&window.console.log&&window.FC_DEV_ENVIRONMENT&&console.log(i);return i},parseExportOptions:function(a){var b,c=this.dataObj.chart,d=this.chartInstance.jsVars.transparent?"":this.chartInstance.options.containerBackgroundColor||"#ffffff";
a.exporting.enabled=e(c.exportenabled,0);a.exporting.bgcolor=d;a.exporting.exporttargetwindow=h(c.exporttargetwindow,"_self");a.exporting.exportaction=c.exportaction&&c.exportaction.toString().toLowerCase()==="save"&&"save"||"download";b=P(a.exporting.exportaction);a.exporting.exportfilename=h(c.exportfilename,"FusionCharts");a.exporting.exporthandler=h(c.html5exporthandler,c.exporthandler,"http://export.api3.fusioncharts.com/");a.exporting.exportparameters=h(c.exportparameters,"");a.exporting.exportformat=
h(c.exportformat,"PNG");a.exporting.exportatclient=e(c.exportatclient,0);a.exporting.exportformats=function(a){var c={JPG:b+" as JPEG image",PNG:b+" as PNG image",PDF:b+" as PDF document",SVG:b+" as SVG vector image"},d,e,f,g=0;if(a){a=a.split("|");for(g=0;g<a.length;g++)f=(e=a[g].split("="))&&e[0].toUpperCase()||"",e=e&&e[1]||"",c[f]&&(d||(d={}))&&(d[f]=e||c[f])}return d||c}(c.exportformats);a.exporting.buttons.printButton.enabled=c.showprintmenuitem=="1";a.exporting.buttons.exportButton.enabled=
c.exportenabled=="1"?c.exportshowmenuitem!="0":!1},defaultSeriesType:q,paletteIndex:1,creditLabel:ja,placeTitle:Ua,placeLegendBlockBottom:x,placeLegendBlockRight:fa,placeHorizontalAxis:ea,placeVerticalAxis:va,placeHorizontalCanvasMarginAdjustment:G,placeVerticalCanvasMarginAdjustment:oa,placeHorizontalXYSpaceManager:function(a,b,c,d){var f=a[ba],g,n,i,j=b.chart,k,l,C,F,m,z,I=f.marginLeftExtraSpace,Q=f.marginTopExtraSpace,N=f.marginBottomExtraSpace,Y=f.marginRightExtraSpace;i=c-(I+Y+a.chart.marginRight+
a.chart.marginLeft);var q=d-(N+a.chart.marginBottom+a.chart.marginTop),r=i*0.3,c=q*0.3;g=i-r;d=q-c;k=h(j.legendposition,S).toLowerCase();a.legend.enabled&&k===U&&(g-=this.placeLegendBlockRight(a,b,g/2,q));F=e(j.xaxisnamepadding,5);m=e(j.labelpadding,2);z=j.rotatexaxisname!==xa;l=h(j.showplotborder,f.is3d?xa:ya)===ya;l=f.plotBorderThickness=l?f.is3d?1:e(j.plotborderthickness,1):0;C=p(e(j.canvasborderthickness,1),0);n=p(C,l/2);m<n&&(m=n);if(!f.isDual&&a.chart.marginRight<C&&j.chartrightmargin===void 0&&
(n=C-a.chart.marginRight,i>r+n))a.chart.marginRight=C,i-=n,r=i*0.3,g=i-r;n=f.x;n.verticalAxisNamePadding=F;n.verticalAxisValuesPadding=m;n.rotateVerticalAxisName=z;n.verticalAxisNameWidth=e(j.xaxisnamewidth);g-=va(a.xAxis,n,a,b,q,g,!1,!1,i);g-=G(a,b,g,a.xAxis);i=g+r;a.legend.enabled&&k!==U&&(d-=this.placeLegendBlockBottom(a,b,i,d/2));d-=Ua(a,b,i,d/2);n=f[0];n.horizontalAxisNamePadding=e(j.yaxisnamepadding,5);n.horizontalLabelPadding=e(j.yaxisvaluespadding,2);n.labelDisplay="auto";n.staggerLines=e(j.staggerlines,
2);n.slantLabels=e(j.slantlabels,0);n.horizontalLabelPadding=n.horizontalLabelPadding<C?C:n.horizontalLabelPadding;this.xAxisMinMaxSetter(a,b,i);g=a.xAxis;m=g.plotLines;C=d/(g.max-g.min);m&&m.length&&(F=(m[0].value-g.min)*C,m=(g.max-m[m.length-1].value)*C,f.isBar&&(l>F&&(g.min-=(l-F)/(2*C)),l>m&&(g.max+=(l-m)/(2*C))));d-=this.placeHorizontalAxis(a.yAxis[0],n,a,b,i,d,r);d-=oa(a,b,d,a.yAxis[0]);na(c+d,a,j,a.xAxis,f.x.lYLblIdx,!0);ta(a,a.xAxis.title,d);if(a.legend.enabled&&k===U){b=a.legend;f=c+d;if(b.height>
f)b.height=f,b.scroll.enabled=!0,f=(b.scroll.scrollBarWidth=10)+(b.scroll.scrollBarPadding=2),b.width+=f,a.chart.marginRight+=f;b.y=20}a.chart.marginLeft+=I;a.chart.marginTop+=Q;a.chart.marginBottom+=N;a.chart.marginRight+=Y},placeVerticalXYSpaceManager:function(a,b,c,d){var f=a[ba],g,n,i=!0,j=0,k=b.chart,l=!1,C,F,m,z=f.marginLeftExtraSpace,I=f.marginTopExtraSpace,Q=f.marginBottomExtraSpace,N=f.marginRightExtraSpace;g=c-(z+N+a.chart.marginRight+a.chart.marginLeft);var Y=d-(Q+a.chart.marginBottom+
a.chart.marginTop),q=g*0.3,d=Y*0.3,r=g-q,c=Y-d,j=f.drawFullAreaBorder=e(k.drawfullareaborder,1),ca=h(k.legendposition,S).toLowerCase();C=e(k.yaxisnamepadding,5);F=e(k.yaxisvaluespadding,k.labelypadding,2);n=h(k.showplotborder,f.is3d?xa:ya)===ya;n=f.plotBorderThickness=n?f.is3d?1:e(k.plotborderthickness,1):0;m=p(e(k.canvasborderthickness,1),0);n=p(m,n/2);this.defaultSeriesType==="area"&&!j&&(n=m);F<m&&(F=m);if(!f.isDual&&a.chart.marginRight<m&&k.chartrightmargin===void 0&&(j=m-a.chart.marginRight,
g>q+j))a.chart.marginRight=m,g-=j,q=g*0.3,r=g-q;a.legend.enabled&&ca===U&&(r-=this.placeLegendBlockRight(a,b,r/2,Y));j=k.rotateyaxisname!==xa;if(f.isDual)l=!0,g=f[1],g.verticalAxisNamePadding=C,g.verticalAxisValuesPadding=F,g.rotateVerticalAxisName=j,g.verticalAxisNameWidth=e(k.syaxisnamewidth),i=a.yAxis[1].opposite,r-=va(a.yAxis[1],g,a,b,Y,r/2,i,l);g=f[0];g.verticalAxisNamePadding=C;g.verticalAxisValuesPadding=F;g.rotateVerticalAxisName=j;g.verticalAxisNameWidth=e(l?k.pyaxisnamewidth:k.yaxisnamewidth);
r-=va(a.yAxis[0],g,a,b,Y,r,!i,l);r-=G(a,b,r,a.yAxis[0],a.yAxis[1]);i=r+q;a.legend.enabled&&ca!==U&&(c-=this.placeLegendBlockBottom(a,b,i,c/2));c-=Ua(a,b,i,c/2);g=f.x;g.horizontalAxisNamePadding=e(k.xaxisnamepadding,5);g.horizontalLabelPadding=e(k.labelpadding,k.labelxpadding,2);g.labelDisplay=h(k.labeldisplay,"auto").toLowerCase();g.rotateLabels=e(k.rotatelabels,k.rotatexaxislabels,0);g.staggerLines=e(k.staggerlines,2);g.slantLabels=e(k.slantlabels,k.slantlabel,0);if(g.horizontalLabelPadding<n)g.horizontalLabelPadding=
n;this.xAxisMinMaxSetter(a,b,i);c-=this.placeHorizontalAxis(a.xAxis,g,a,b,i,c,q);c-=oa(a,b,c,a.xAxis);l&&(na(d+c,a,k,a.yAxis[1],f[1].lYLblIdx),ta(a,a.yAxis[1].title,c));na(d+c,a,k,a.yAxis[0],f[0].lYLblIdx);ta(a,a.yAxis[0].title,c);if(a.legend.enabled&&ca===U&&(b=a.legend,f=d+c,b.height>f&&b.type!=="gradient"))b.height=f,b.scroll.enabled=!0,f=(b.scroll.scrollBarWidth=10)+(b.scroll.scrollBarPadding=2),b.width+=f,a.chart.marginRight+=f;a.chart.marginLeft+=z;a.chart.marginTop+=I;a.chart.marginBottom+=
Q;a.chart.marginRight+=N},placeVerticalAxisTitle:ta,spaceManager:function(){return this.placeVerticalXYSpaceManager.apply(this,arguments)},axisMinMaxSetter:function(a,b,c,d,g,n,h,i){c=b.stacking100Percent?La(99,1,100,0,g,n,h,i):La(e(b.max,c),e(b.min,d),c,d,g,n,h,i);a.min=Number(L(c.Min,10));a.max=Number(L(c.Max,10));a.tickInterval=Number(L(c.divGap,10));b.numdivlines=Math.round((a.max-a.min)/a.tickInterval)-1;if(c.Range/c.divGap<=2)a.alternateGridColor=f;this.highValue=b.max;this.lowValue=b.min;delete b.max;
delete b.min},configurePlotLines:function(a,b,c,d,n,i,j,l,C,F,s){var m;m=c.min;var z=c.max,I=c.tickInterval,Q=F?"xAxis":d.stacking100Percent?"percentValue":"yAxis",N=m,p=1,Y=c.gridLineColor,r=c.gridLineWidth,ca=c.gridLineDashStyle,x=m<0&&z>0?!0:!1,G=m===0,u=z===0,v=e(d.showzeroplanevalue,a.showzeroplanevalue)===0,t=!0,w=1,y=e(a.numdivlines,0)>0,ua=b[ba].axisGridManager,ea=b.chart.paletteIndex,s=e(s,C?1:0);delete c._altGrid;delete c._lastValue;if(F&&!d.catOccupied)d.catOccupied={};if(x&&(!F||!d.catOccupied[0]))if(F?
(t=e(a.showvzeroplane,1),b=e(a.showvzeroplanevalue,i),y=e(a.vzeroplanethickness,1),a=y>0?g(h(a.vzeroplanecolor,Y),h(a.vzeroplanealpha,a.vdivlinealpha,k.divLineAlpha[ea])):f):(ea=e(a.divlinealpha,k.divLineAlpha[ea]),b=e(d.showzeroplanevalue,a.showzeroplanevalue,i),this.defaultZeroPlaneHighlighted===!1?(t=e(d.showzeroplane,a.showzeroplane,!(this.defaultZeroPlaneHidden&&!y)),y=r):(y=r===1?2:r,w=5,ea*=2),y=e(d.zeroplanethickness,a.zeroplanethickness,y),a=y>0?g(h(d.zeroplanecolor,a.zeroplanecolor,Y),h(d.zeroplanealpha,
a.zeroplanealpha,ea)):f),t)t=b?l[Q](0,s):q,(w=ua.addAxisGridLine(c,0,t,y,ca,a,w,F))&&(w.isZeroPlane=!0);if(n===1&&(!F||!d.catOccupied[m]))t=G&&v?q:l[Q](m,s),(w=ua.addAxisGridLine(c,m,t,0.1,void 0,f,1,F))&&(w.isMinLabel=!0);r<=0&&(r=0.1,Y=f);for(m=Number(L(N+I,10));m<z;m=Number(L(m+I,10)),p+=1){x&&N<0&&m>0&&!C&&(ua.addAxisAltGrid(c,0),p+=1);if(m!==0&&(!F||!d.catOccupied[m]))t=i===1&&p%j===0?l[Q](m,s):q,ua.addAxisGridLine(c,m,t,r,ca,Y,2,F);N=m;C||ua.addAxisAltGrid(c,m)}C||ua.addAxisAltGrid(c,z);if(n===
1&&p%j===0&&(!F||!d.catOccupied[z]))t=u&&v?q:l[Q](z,s),(w=ua.addAxisGridLine(c,z,t,0.1,ca,f,2,F))&&(w.isMaxLabel=!0);if(this.realtimeEnabled)c.labels._enabled=c.labels.enabled,c._gridLineWidth=c.gridLineWidth,c._alternateGridColor=c.alternateGridColor;c.labels.enabled=!1;c.gridLineWidth=0;c.alternateGridColor=f;c.plotLines.sort(ra)},xAxisMinMaxSetter:function(a,b,c){var g=a[ba],n=g.x,h=b.chart,i=n.min=e(n.min,0),j=n.max=e(n.max,n.catCount-1),k,l=0,C=0,F=a.chart.defaultSeriesType,m=/^(column|column3d|bar|bar3d|floatedcolumn|sparkwinloss|boxandwhisker2d|dragcolumn)$/.test(F),
z=/^(line|area|spline|areaspline)$/.test(F),F=/^(scatter|bubble|candlestick|dragnode)$/.test(F),I=a.xAxis,Q=I.scroll,N=k=Math.min(e(h.canvaspadding,0),c/2-10);if(n.adjustMinMax){var j=i=!e(h.setadaptivexmin,1),p=e(this.numVDivLines,h.numvdivlines,4),Y=h.adjustvdiv!==xa,q=e(h.showxaxisvalues,h.showxaxisvalue,1),r=e(h.showvlimits,q),q=e(h.showvdivlinevalue,h.showvdivlinevalues,q);this.axisMinMaxSetter(I,n,h.xaxismaxvalue,h.xaxisminvalue,i,j,p,Y);i=I.min;j=I.max;n.requiredAutoNumericLabels&&(p=e(parseInt(h.xaxisvaluesstep,
10),1),this.configurePlotLines(h,a,I,n,r,q,p<1?1:p,g.numberFormatter,!1,!0));I.plotLines.sort(ra)}I.labels.enabled=!1;I.gridLineWidth=0;I.alternateGridColor=f;if((m||g.isScroll)&&!g.hasNoColumn)C=l=0.5;g.is3d&&(N+=e(a.chart.xDepth,0));a=(c-(N+k))/(j-i+(l+C));I.min=i-(l+N/a);I.max=j+(C+k/a);if(Q&&Q.enabled)l=Q.vxLength,C=I.max-I.min,Q.viewPortMin=I.min,Q.viewPortMax=I.max,Q.scrollRatio=l/C,Q.flatScrollBars=g.flatScrollBars,Q.scrollBar3DLighting=g.scrollBar3DLighting,I.max=I.min+l;z&&I.min===I.max&&
(I.min-=0.5,I.max+=0.5);F&&b.vtrendlines&&d(b.vtrendlines,I,g,!1,!0,!0)},postSeriesAddition:function(a){var b=a[ba],c=b.isBar,d=b.is3d,f=a.chart.rotateValues&&!c?270:0,g=b[0],n=g&&g.stacking100Percent,i=b.showPercentValues||b.showPercentInToolTip;if(this.isStacked&&(b.showStackTotal||n||i)){var j=b.plotSpacePercent,k=a.chart.defaultSeriesType,l,C,F=1-j,F=1-2*j,m,z,I,Q,N,p,Y,q,r,ca,x,j=a.series,G,v,w=E({},a.plotOptions.series.dataLabels.style),y=parseFloat(w.fontSize),ua=!g.stacking100Percent;w.color=
a.plotOptions.series.dataLabels.color;C=g.stack;for(l in C){g=C[l].length;m=F/g;I=-(F-m)/2;if(n||i){ca=[];q=0;for(Q=j.length;q<Q;q+=1)N=j[q],!N.yAxis&&h(N.type,k)===l&&ca.push(N)}for(z=0;z<g;z+=1,I+=m){Y=C[l][z];if(n||i){x=[];q=0;for(Q=ca.length;q<Q;q+=1)N=ca[q],e(N.columnPosition,0)===z&&x.push(N.data)}if(Y&&Y.length){p=0;for(N=Y.length;p<N;p+=1)if(q=Y[p],r=(q.n||0)+(q.p||0),b.showStackTotal&&(Q=p,Q+=I,q=r<0?q.n:q.p,a.xAxis.plotLines.push({value:Q,width:0,isVline:ua,isTrend:!ua,zIndex:4,_isStackSum:1,
_catPosition:p,_stackIndex:z,label:{align:t,textAlign:!d&&f===270?r<0?U:Na:c?r<0?U:Na:t,offsetScale:ua?q:void 0,offsetScaleIndex:0,rotation:f,style:w,verticalAlign:u,y:c?0:r<0?f===270?4:y:-4,x:0,text:b.numberFormatter.yAxis(r)}})),n||i){q=0;for(Q=x.length;q<Q;q+=1)if(G=x[q][p],G.y||G.y===0){v=G.y/r*100;if(n&&(G.y=v,G.previousY||G.previousY===0))G.previousY=G.previousY/r*100;if(G.showPercentValues)G.displayValue=this.numberFormatter.percentValue(v);if(G.showPercentInToolTip)G.toolText=G.toolText+parseInt(v*
100,10)/100+"%"}}}}}}},styleMapForFont:Q,styleApplicationDefinition_font:function(a,b,c){var d,e,f=!1,g,n,h=this.styleMapForFont;switch(b){case "caption":d=a.title;break;case "datalabels":d=a.xAxis.labels;break;case "datavalues":d=a.plotOptions.series.dataLabels;f=!0;break;case "subcaption":d=a.subtitle;break;case "tooltip":d=a.tooltip;break;case "trendvalues":d={style:a[ba].trendStyle};break;case "xaxisname":d=a.xAxis.title;break;case "yaxisname":case "pyaxisname":case "axistitle":d=[];b=0;for(g=
a.yAxis.length;b<g;b+=1)d.push(a.yAxis[b].title);break;case "yaxisvalues":d=[];b=0;for(g=a.yAxis.length;b<g;b+=1)d.push(a.yAxis[b].labels);break;case "vlinelabels":d={style:a[ba].divlineStyle};break;case "legend":d={style:a.legend.itemStyle};break;default:(d=a.orphanStyles[b])||(a.orphanStyles[b]=d={text:"",style:{}})}if(typeof d==="object")if(d instanceof Array){b=0;for(g=d.length;b<g;b+=1){n=d[b];for(e in c)if(a=e.toLowerCase(),typeof h[a]==="function")h[a](c[e],n,f);v(n.style)}}else{for(e in c)if(a=
e.toLowerCase(),typeof h[a]==="function")h[a](c[e],d,f);v(d.style)}},parseStyles:function(a){var b,c,d,e={},f,g=this.dataObj;if(g.styles&&g.styles.definition instanceof Array&&g.styles.application instanceof Array){for(b=0;b<g.styles.definition.length;b+=1)c=g.styles.definition[b],c.type&&c.name&&this["styleApplicationDefinition_"+c.type.toLowerCase()]&&(e[c.name.toLowerCase()]=c);for(b=0;b<g.styles.application.length;b+=1){c=g.styles.application[b].styles&&g.styles.application[b].styles.split(V)||
[];for(f=0;f<c.length;f+=1)if(d=c[f].toLowerCase(),e[d]&&g.styles.application[b].toobject)this["styleApplicationDefinition_"+e[d].type.toLowerCase()](a,g.styles.application[b].toobject.toLowerCase(),e[d])}}},dispose:function(){var a;this.disposing=!0;this.renderer&&this.renderer.dispose();this.numberFormatter&&this.numberFormatter.dispose();this.smartLabel&&this.smartLabel.dispose();for(a in this)delete this[a];delete this.disposing;this.disposed=!0}});$("stub",{standaloneInit:!0},$.base);$("barbase",
{spaceManager:function(){return this.placeHorizontalXYSpaceManager.apply(this,arguments)}},$.base);$("singleseries",{series:function(a,b,c){var e=a.data||a.dataset&&a.dataset[0]&&a.dataset[0].data;if(e&&e.length>0&&e instanceof Array)b.legend.enabled=!1,c=this.point(c,{data:[],colorByPoint:!0},e,a.chart,b),c instanceof Array?b.series=b.series.concat(c):b.series.push(c),this.configureAxis(b,a),a.trendlines&&d(a.trendlines,b.yAxis,b[ba],!1,this.isBar)},defaultSeriesType:q,configureAxis:function(a,b){var c=
a[ba],d=a.xAxis,f=b.chart,g,n,h,i,j,k,l,C,F,z,I,Q=this.numberFormatter,N=e(f.syncaxislimits,0),q;d.title.text=D(f.xaxisname);q=e(parseInt(f.yaxisvaluesstep,10),parseInt(f.yaxisvaluestep,10),1);q=q<1?1:q;d=a.yAxis[0];g=c[0];if(c.isDual)if(n=Q.getCleanValue(f.pyaxismaxvalue),h=Q.getCleanValue(f.pyaxisminvalue),d.title.text=D(f.pyaxisname),N&&!g.stacking100Percent){I=c[1];z=e(I.max);I=e(I.min);if(z!==void 0&&I!==void 0)g.min=m(g.min,I),g.max=p(g.max,z);z=Q.getCleanValue(f.syaxismaxvalue);I=Q.getCleanValue(f.syaxisminvalue);
I!==null&&(h=h!==null?m(h,I):I);z!==null&&(n=n!==null?p(n,z):z)}else N=0;else n=Q.getCleanValue(f.yaxismaxvalue),h=Q.getCleanValue(f.yaxisminvalue),d.title.text=D(f.yaxisname);k=e(this.isStacked?0:this.setAdaptiveYMin,f.setadaptiveymin,0);j=i=!k;l=e(c.numdivlines,f.numdivlines,this.numdivlines,4);C=f.adjustdiv!==xa;F=e(this.showYAxisValues,f.showyaxisvalues,f.showyaxisvalue,1);z=e(f.showlimits,F);I=e(f.showdivlinevalue,f.showdivlinevalues,F);this.axisMinMaxSetter(d,g,n,h,i,j,l,C);this.configurePlotLines(f,
a,d,g,z,I,q,c.numberFormatter,!1);if(d.reversed&&d.min>=0)a.plotOptions.series.threshold=d.max;if(c.isDual)d=a.yAxis[1],g=c[1],z=e(f.showsecondarylimits,z),I=e(f.showdivlinesecondaryvalue,F),N?(Q=a.yAxis[0],d.min=Q.min,d.max=Q.max,d.tickInterval=Q.tickInterval,delete g.max,delete g.min):(n=Q.getCleanValue(f.syaxismaxvalue),h=Q.getCleanValue(f.syaxisminvalue),k=e(f.setadaptivesymin,k),j=i=!k,this.axisMinMaxSetter(d,g,n,h,i,j,l,C)),this.configurePlotLines(f,a,d,g,z,I,q,c.numberFormatter,!0),d.title.text=
D(f.syaxisname)},pointValueWatcher:function(a,b,c,d,f,g,n){if(b!==null){var a=a[ba],i,c=e(c,0);a[c]||(a[c]={});c=a[c];if(d)this.distributedColumns&&(a.marimekkoTotal+=b),d=c.stack,f=e(f,0),g=e(g,0),n=h(n,pa),d[n]||(d[n]=[]),n=d[n],n[g]||(n[g]=[]),g=n[g],g[f]||(g[f]={}),f=g[f],b>=0?f.p?(i=f.p,b=f.p+=b):f.p=b:f.n?(i=f.n,b=f.n+=b):f.n=b;c.max=c.max>b?c.max:b;c.min=c.min<b?c.min:b;return i}},getPointStub:function(a,b,c,d){var d=d[ba],b=b===null?b:d.numberFormatter.dataLabels(b),f=aa(D(a.tooltext)),g=
aa(D(a.displayvalue)),c=d.showTooltip?f!==void 0?f:b===null?!1:c!==q?c+d.tooltipSepChar+b:b:q,d=e(a.showvalue,d.showValues)?g!==void 0?g:b:q,a=h(a.link);return{displayValue:d,toolText:c,link:a}}},$.base);$("multiseries",{series:function(a,b,c){var f,g,n=b[ba],h;b.legend.enabled=Boolean(e(a.chart.showlegend,1));if(a.dataset&&a.dataset.length>0){this.categoryAdder(a,b);f=0;for(g=a.dataset.length;f<g;f+=1){h={visible:!!e(a.dataset[f].visible,1),data:[]};if(!this.isStacked)h.numColumns=g;h=this.point(c,
h,a.dataset[f],a.chart,b,n.oriCatTmp.length,f);h instanceof Array?b.series=b.series.concat(h):b.series.push(h)}this.configureAxis(b,a);a.trendlines&&!this.isLog&&d(a.trendlines,b.yAxis,n,!1,this.isBar,void 0,this.inversed)}},categoryAdder:function(a,b){var c,d=0,f=b[ba],g=f.axisGridManager,n=a.chart,h=b.xAxis,i,f=f.x;if(a.categories&&a.categories[0]&&a.categories[0].category){if(a.categories[0].font)b.xAxis.labels.style.fontFamily=a.categories[0].font;if((c=e(a.categories[0].fontsize))!==void 0)c<
1&&(c=1),b.xAxis.labels.style.fontSize=c+Ja,v(b.xAxis.labels.style);if(a.categories[0].fontcolor)b.xAxis.labels.style.color=a.categories[0].fontcolor.split(V)[0].replace(/^\#?/,"#");var j=b[ba].oriCatTmp,k=a.categories[0].category;for(c=0;c<k.length;c+=1)k[c].vline?g.addVline(h,k[c],d,b):(i=(i=e(k[c].showlabel,n.showlabels,1))?D(r(a.categories[0].category[c].label,a.categories[0].category[c].name)):q,g.addXaxisCat(h,d,d,i),j[d]=r(D(a.categories[0].category[c].tooltext),i),d+=1)}f.catCount=d},getPointStub:function(a,
b,c,d,f,g,n){var i,d=d[ba],j,k,b=b===null?b:this.numberFormatter.dataLabels(b,n),l,C=aa(D(a.tooltext)),n=d.tooltipSepChar;d.showTooltip?C!==void 0?f=C:b===null?f=!1:(d.seriesNameInToolTip&&(l=r(f&&f.seriesname)),f=l?l+n:q,f+=c?c+n:q,d.showPercentInToolTip?k=!0:f+=b):f=!1;e(a.showvalue,g)?aa(a.displayvalue)!==void 0?i=D(a.displayvalue):d.showPercentValues?j=!0:i=b:i=q;a=h(a.link);return{displayValue:i,toolText:f,link:a,showPercentValues:j,showPercentInToolTip:k}}},$.singleseries);var Wa=function(a,
b){return a-b};$("xybase",{hideRLine:function(){var a=this.chart.series[this.index+1];a&&a.hide&&a.hide()},showRLine:function(){var a=this.chart.series[this.index+1];a&&a.show&&a.show()},getRegressionLineSeries:function(a,b,c){var d,e,f,g;g=a.sumXY;var n=a.sumX,h=a.sumY;e=a.xValues;f=a.sumXsqure;d=a.yValues;a=a.sumYsqure;b?(e.sort(Wa),d=e[0],e=e[e.length-1],g=(c*g-n*h)/(c*f-Math.pow(n,2)),f=!isNaN(g)?g*(d-n/c)+h/c:h/c,c=!isNaN(g)?g*(e-n/c)+h/c:h/c,c=[{x:d,y:f},{x:e,y:c}]):(d.sort(Wa),f=d[0],d=d[d.length-
1],g=(c*g-n*h)/(c*a-Math.pow(h,2)),e=!isNaN(g)?g*(f-h/c)+n/c:n/c,c=!isNaN(g)?g*(d-h/c)+n/c:n/c,c=[{x:e,y:f},{x:c,y:d}]);return c},pointValueWatcher:function(a,b,c,d){var e=a[ba];if(b!==null)a=e[0],a.max=a.max>b?a.max:b,a.min=a.min<b?a.min:b;if(c!==null)a=e.x,a.max=a.max>c?a.max:c,a.min=a.min<c?a.min:c;d&&(c=c||0,b=b||0,d.sumX+=c,d.sumY+=b,d.sumXY+=c*b,d.sumXsqure+=Math.pow(c,2),d.xValues.push(c),d.sumYsqure+=Math.pow(b,2),d.yValues.push(b))}},$.multiseries);$("scrollbase",{postSeriesAddition:function(){var a=
this.hcJSON,b=a.xAxis.scroll,c=a[ba],d=c.width,f=c.x.catCount,g=this.dataObj.chart;c.isScroll=!0;a.chart.hasScroll=!0;if(this.isStacked)n=1;else{var n=0,i=0,j,l=a.series,F,m=a.chart.defaultSeriesType;for(j=l.length;i<j;i++)F=h(l[i].type,m),F==="column"&&(n+=1);n<1&&(n=1)}f*=n;d=e(g.numvisibleplot,Math.floor(d/this.avgScrollPointWidth));if(b&&d>=2&&d<f)b.enabled=!0,b.vxLength=d/n,b.startPercent=g.scrolltoend===ya?1:0,b.padding=e(g.scrollpadding,a.chart.plotBorderWidth/2),b.height=e(g.scrollheight,
16),b.buttonWidth=e(g.scrollbtnwidth,g.scrollheight,16),b.buttonPadding=e(g.scrollbtnpadding,0),b.color=y(h(g.scrollcolor,k.altHGridColor[a.chart.paletteIndex])),c.marginBottomExtraSpace+=b.padding+b.height;if(C||e(g.enabletouchscroll,0))a.chart.zoomType="x",a.chart.nativeZoom=!1,a.chart.selectionMarkerFill="rgba(255,255,255,0)",(a.callbacks||(a.callbacks=[])).push(function(a){M(a,"selectionstart selectiondrag",$.scrollbase.performTouchScroll,{})})},performTouchScroll:function(a){var b=this.xAxis[0].scroller,
c=b.config;a.isOutsidePlot!==!0&&F(b.elements.anchor.element,a.type==="selectionstart"?"dragstart":"drag",{pageX:-(c.trackLength/(c.width/c.scrollRatio)*(a.chartX||1)),pageY:-a.chartY})}},$.multiseries);$("logbase",{isLog:!0,isValueAbs:!0,configureAxis:function(a,b){var c=a[ba],i=c.axisGridManager,j=this.numberFormatter,l=a.series,C=a.xAxis,F=a.yAxis[0],m=c[0],z=b.chart,s=!e(z.showlimits,z.showyaxisvalues,1),I=!e(z.showdivlinevalues,z.showyaxisvalues,1),Q=e(z.base,z.logbase,10),N=e(z.yaxismaxvalue),
p=e(z.yaxisminvalue),Y=e(z.showminordivlinevalues)===1,r=h(z.minordivlinecolor,F.gridLineColor,k.divLineColor[a.chart.paletteIndex]),ca=e(z.minordivlinealpha,z.divlinealpha,k.divLineAlpha[a.chart.paletteIndex]),G=[F,void 0,void 0,e(z.divlinethickness,2),F.gridLineDashStyle,F.gridLineColor,2],r=[F,void 0,void 0,e(z.minordivlinethickness,1),F.gridLineDashStyle,g(h(z.minordivlinecolor,r),e(z.minordivlinealpha,ca/2)),2],ca=Y||ca&&r[3],x;Q<=0&&(Q=10);N<=0&&(N=void 0);p<=0&&(p=void 0);N=this.getLogAxisLimits(m.max||
Q,m.min||1,N,p,Q,ca?z.numminordivlines:0);C.title.text=D(z.xaxisname);E(F,{title:{text:D(z.yaxisname)},labels:{enabled:!1},gridLineWidth:0,alternateGridColor:f,reversed:z.invertyaxis==="1",max:n(N.Max,Q),min:n(N.Min,Q)});for(C=l.length;C--;)if(z=l[C]){z.threshold=F.min;for(x=(z=z.data)&&z.length||0;x--;)p=z[x],p.y=n(p.y,Q)}delete m.max;delete m.min;m.isLog=!0;if(F.reversed&&F.min>=0)a.plotOptions.series.threshold=F.max;b.trendlines&&d(b.trendlines,[{max:N.Max,min:N.Min,plotLines:F.plotLines,plotBands:F.plotBands}],
c);for(C=F.plotLines.length;C--;)p=F.plotLines[C],p.value&&(p.value=n(p.value,Q)),p.from&&(p.from=n(p.from,Q)),p.to&&(p.to=n(p.to,Q));for(C=F.plotBands.length;C--;)p=F.plotBands[C],p.from&&(p.from=n(p.from,Q)),p.to&&(p.to=n(p.to,Q));for(C=N.divArr.length;C--;){p=N.divArr[C];if(p.ismajor)G[1]=n(p.value,Q),G[2]=j.yAxis(p.value),i.addAxisGridLine.apply(i,G);else if(ca||p.isextreme)r[1]=n(p.value,Q),r[2]=Y||p.isextreme?j.yAxis(p.value):q,i.addAxisGridLine.apply(i,r);z=F.plotLines[F.plotLines.length-1];
if(p.isextreme){if(z.width=0.1,s)z.label.text=BLANK}else if(I&&z.label)z.label.text=BLANK}},getLogAxisLimits:function(a,b,c,d,e,f){var g=function(a){return a==null||a==void 0||a==""||isNaN(a)?!1:!0},n=0,h=[],i,j,k,l,C,F;g(c)&&Number(c)>=a?a=Number(c):(c=e>1?R(O(a)/O(e)):Z(O(a)/O(e)),a=X(e,c),j=c);j||(j=e>1?R(O(a)/O(e)):Z(O(a)/O(e)));g(d)&&Number(d)<=b?b=Number(d):(c=e>1?Z(O(b)/O(e)):R(O(b)/O(e)),b=X(e,c),i=c);i||(i=e>1?Z(O(b)/O(e)):R(O(b)/O(e)));d=Number(String(O(e)/O(10)));f=Number(f)||(Z(d)==d?
8:4);e>1?(k=j,l=i):e>0&&e<1&&(k=i,l=j);d=j;for(i=k;i>=l;--i)if(k=X(e,d),b<=k&&a>=k&&(h[n++]={value:k,ismajor:!0}),i!=l){j=e>1?-1:1;k=X(e,d)-X(e,d+j);c=k/(f+1);for(g=1;g<=f;++g)k=X(e,d+j)+c*g,b<=k&&a>=k&&(h[n++]={value:k,ismajor:!1});e>1?d--:d++}for(var z in h)for(var m in h[z])if(m=="value"){if(!C)C=h[z][m]==b&&(h[z].isextreme=!0);if(!F)F=h[z][m]==a&&(h[z].isextreme=!0)}C||(h[n++]={value:b,ismajor:!0,isextreme:!0});F||(h[n]={value:a,ismajor:!0,isextreme:!0});return{Max:a,Min:b,divArr:h}},pointValueWatcher:function(a,
b,c){a=a[ba];c=e(c,0);if(b>0)a[c]||(a[c]={}),c=a[c],c.max=c.max>b?c.max:b,c.min=c.min<b?c.min:b}},$.mslinebase);x=$.singleseries;fa=$.multiseries;$("column2dbase",{point:function(a,b,c,d,f){var a=c.length,g=f[ba],n=g.axisGridManager,i=f.xAxis,j=f.chart.paletteIndex,g=g.x,l=f.colors,C=f.colors.length,F=/3d$/.test(f.chart.defaultSeriesType),z=this.isBar,m=h(d.showplotborder,F?xa:ya)===ya?F?1:e(d.plotborderthickness,1):0,I=f.chart.useRoundEdges,Q=e(d.plotborderalpha,d.plotfillalpha,100),p=h(d.plotbordercolor,
k.plotBorderColor[j]).split(V)[0],j=V+(e(d.useplotgradientcolor,1)?ha(d.plotgradientcolor,k.plotGradientColor[j]):q),N=0,Y=Boolean(e(d.use3dlighting,1)),ca=f[ba].numberFormatter,G,x=e(d.plotborderdashed,0),v=e(d.plotborderdashlen,5),u=e(d.plotborderdashgap,4),t,w,y,ua,ea,na,B,va,ra;for(y=w=0;w<a;w+=1)B=c[w],B.vline?n.addVline(i,B,N,f):(t=ca.getCleanValue(B.value),ua=e(B.showlabel,d.showlabels,1),ua=D(!ua?q:r(B.label,B.name)),n.addXaxisCat(i,N,N,ua),N+=1,G=h(B.color,l[y%C])+j.replace(/,+?$/,""),ea=
h(B.alpha,d.plotfillalpha,Aa),na=h(B.ratio,d.plotfillratio),va=h(360-d.plotfillangle,z?180:90),t<0&&(va=z?180-va:360-va),ra={opacity:ea/100},ea=K(G,ea,na,va,I,p,h(B.alpha,Q)+q,z,F),G=e(B.dashed,x)?H(h(B.dashlen,v),h(B.dashgap,u),m):void 0,b.data.push(E(this.getPointStub(B,t,ua,f),{y:t,shadow:ra,color:ea[0],borderColor:ea[1],borderWidth:m,use3DLighting:Y,dashStyle:G,tooltipConstraint:this.tooltipConstraint})),this.pointValueWatcher(f,t),y+=1);g.catCount=N;return b},defaultSeriesType:"column"},x);$("linebase",
{defaultSeriesType:"line",hasVDivLine:!0,defaultPlotShadow:1,point:function(a,b,c,d,f){var g,n,i,j,l,C,F,z,m,I,Q,p,N,Y,ca,G,x,v,u,t,w,ua,ea,B,na,a=f.chart,va=c.length,ra=f.xAxis;g=f[ba];var oa=g.axisGridManager,ta=0,L=g.x,M=f.chart.paletteIndex,K=f[ba].numberFormatter;ca=y(h(d.linecolor,d.palettecolors,k.plotFillColor[M]));G=h(d.linealpha,Aa);p=e(d.linethickness,this.lineThickness,4);N=Boolean(e(d.linedashed,0));z=e(d.linedashlen,5);m=e(d.linedashgap,4);b.color={FCcolor:{color:ca,alpha:G}};b.lineWidth=
p;b.step=h(this.stepLine,b.step);b.drawVerticalJoins=Boolean(e(b.drawVerticalJoins,d.drawverticaljoins,1));b.useForwardSteps=Boolean(e(b.useForwardSteps,d.useforwardsteps,1));Y=e(d.drawanchors,d.showanchors);for(l=n=0;n<va;n+=1)j=c[n],j.vline?oa.addVline(ra,j,ta,f):(g=K.getCleanValue(j.value),i=e(j.showlabel,d.showlabels,1),i=D(!i?q:r(j.label,j.name)),oa.addXaxisCat(ra,ta,ta,i),ta+=1,I=y(h(j.color,ca)),Q=h(j.alpha,G),C=e(j.dashed,N)?H(z,m,p):void 0,F={opacity:Q/100},v=e(j.anchorsides,d.anchorsides,
0),na=e(j.anchorstartangle,d.anchorstartangle,90),w=e(j.anchorradius,d.anchorradius,this.anchorRadius,3),t=y(h(j.anchorbordercolor,d.anchorbordercolor,ca)),u=e(j.anchorborderthickness,d.anchorborderthickness,this.anchorBorderThickness,1),ua=y(h(j.anchorbgcolor,d.anchorbgcolor,k.anchorBgColor[M])),ea=h(j.anchoralpha,d.anchoralpha,Aa),B=h(j.anchorbgalpha,d.anchorbgalpha,ea),x=Y===void 0?Q!=0:!!Y,b.data.push(E(this.getPointStub(j,g,i,f),{y:g,color:{FCcolor:{color:I,alpha:Q}},shadow:F,dashStyle:C,valuePosition:h(j.valueposition,
a.valuePosition),marker:{enabled:!!x,fillColor:{FCcolor:{color:ua,alpha:B*ea/100+q}},lineColor:{FCcolor:{color:t,alpha:ea}},lineWidth:u,radius:w,startAngle:na,symbol:sa(v)},tooltipConstraint:this.tooltipConstraint})),this.pointValueWatcher(f,g),l+=1);L.catCount=ta;return b},defaultZeroPlaneHighlighted:!1},x);$("area2dbase",{defaultSeriesType:"area",hasVDivLine:!0,point:function(a,b,d,f,g){var a=g.chart,n=d.length,i=g.xAxis,j=g[ba],l=g.chart.paletteIndex,C=j.axisGridManager,j=j.x,F=g[ba].numberFormatter,
z=0,m,I,Q,p,N,Y,ca,G,x,v,u,t,w,ua,ea,B,na,va,ra,oa,ta,L,M;p=h(f.plotfillcolor,f.areabgcolor,aa(f.palettecolors)?g.colors[0]:k.plotFillColor[l]).split(V)[0];L=V+(e(f.useplotgradientcolor,1)?ha(f.plotgradientcolor,k.plotGradientColor[l]):q);N=h(f.plotfillalpha,f.areaalpha,this.isStacked?Aa:"90");Y=e(f.plotfillangle,270);ca=h(f.plotbordercolor,f.areabordercolor,aa(f.palettecolors)?g.colors[0]:k.plotBorderColor[l]).split(V)[0];G=f.showplotborder==xa?xa:h(f.plotborderalpha,f.plotfillalpha,f.areaalpha,
Aa);m=e(f.plotborderangle,270);I=Boolean(e(f.plotborderdashed,0));w=e(f.plotborderdashlen,5);na=e(f.plotborderdashgap,4);va=e(f.plotborderthickness,f.areaborderthickness,1);M=b.fillColor={FCcolor:{color:p+L.replace(/,+?$/,""),alpha:N,ratio:Pa,angle:Y}};b.lineWidth=va;b.dashStyle=I?H(w,na,va):void 0;b.lineColor={FCcolor:{color:ca,alpha:G,ratio:Aa,angle:m}};b.step=h(this.stepLine,b.step);b.drawVerticalJoins=Boolean(e(b.drawVerticalJoins,f.drawverticaljoins,1));b.useForwardSteps=Boolean(e(b.useForwardSteps,
f.useforwardsteps,1));na=Boolean(e(f.drawanchors,f.showanchors,1));for(va=I=0;I<n;I+=1)w=d[I],w.vline?C.addVline(i,w,z,g):(m=F.getCleanValue(w.value),Q=e(w.showlabel,f.showlabels,1),Q=D(!Q?q:r(w.label,w.name)),C.addXaxisCat(i,z,z,Q),z+=1,x=e(w.anchorsides,f.anchorsides,0),t=e(w.anchorstartangle,f.anchorstartangle,90),v=e(w.anchorradius,f.anchorradius,3),u=y(h(w.anchorbordercolor,f.anchorbordercolor,ca)),ra=e(w.anchorborderthickness,f.anchorborderthickness,1),ua=y(h(w.anchorbgcolor,f.anchorbgcolor,
k.anchorBgColor[l])),ea=h(w.anchoralpha,f.anchoralpha,this.anchorAlpha,xa),B=h(w.anchorbgalpha,f.anchorbgalpha,ea),oa=aa(w.color),ta=e(w.alpha),oa=oa!==void 0||ta!==void 0?{FCcolor:{color:oa?y(oa)+L:p,alpha:void 0===ta?c(ta)+q:N,ratio:Pa,angle:Y}}:M,ta={opacity:Math.max(ta,G)/100,inverted:!0},b.data.push(E(this.getPointStub(w,m,Q,g),{y:m,shadow:ta,color:oa,valuePosition:h(w.valueposition,a.valuePosition),marker:{enabled:na,fillColor:{FCcolor:{color:ua,alpha:B*ea/100+q}},lineColor:{FCcolor:{color:u,
alpha:ea}},lineWidth:ra,radius:v,symbol:sa(x),startAngle:t},tooltipConstraint:this.tooltipConstraint,previousY:this.pointValueWatcher(g,m)})),va+=1);j.catCount=z;return b}},x);var Oa=l.getDataParser={column:function(a,b,d){var f=a[ba],g=b.borderWidth;return function(n,i,j){var k=c(h(n.alpha,b.alpha)).toString(),l={opacity:k/100},C=b.isBar,F=b.fillAangle,k=K(h(n.color,b.color)+b.plotgradientcolor,k,h(n.ratio,b.ratio),j<0?C?180-F:360-F:F,b.isRoundEdges,b.plotBorderColor,Math.min(k,c(b.plotBorderAlpha)).toString(),
C,b.is3d),C=e(n.dashed,b.dashed)?H(h(n.dashlen,b.dashLen),h(n.dashgap,b.dashGap),g):void 0,n=d.getPointStub(n,j,f.oriCatTmp[i],a,b,b.showValues,b.yAxis);n.y=j;n.shadow=l;n.color=k[0];n.borderColor=k[1];n.borderWidth=g;n.use3DLighting=b.use3DLighting;n.dashStyle=C;n.tooltipConstraint=d.tooltipConstraint;return n}},line:function(a,b,c){var d=a[ba];return function(f,g,n){var i=h(f.alpha,b.lineAlpha),j={opacity:i/100},k=h(f.anchoralpha,b.anchorAlpha),g=c.getPointStub(f,n,d.oriCatTmp[g],a,b,b.showValues,
b.yAxis);g.y=n;g.shadow=j;g.dashStyle=e(f.dashed,b.lineDashed)?H(b.lineDashLen,b.lineDashGap,b.lineThickness):void 0;g.color={FCcolor:{color:y(h(f.color,b.lineColor)),alpha:i}};g.valuePosition=h(f.valueposition,b.valuePosition);g.marker={enabled:b.drawAnchors===void 0?i!=0:!!b.drawAnchors,fillColor:{FCcolor:{color:y(h(f.anchorbgcolor,b.anchorBgColor)),alpha:(h(f.anchorbgalpha,b.anchorBgAlpha)*k/100).toString()}},lineColor:{FCcolor:{color:y(h(f.anchorbordercolor,b.anchorBorderColor)),alpha:k}},lineWidth:e(f.anchorborderthickness,
b.anchorBorderThickness),radius:e(f.anchorradius,b.anchorRadius),symbol:sa(e(f.anchorsides,b.anchorSides)),startAngle:h(f.anchorstartangle,b.anchorAngle)};return g}},area:function(a,b,c){var d=a[ba];return function(f,g,n){var i=h(f.alpha,b.fillAlpha),j={opacity:Math.max(i,b.lineAlpha)/100,inverted:!0},k=h(f.anchoralpha,b.anchorAlpha),g=c.getPointStub(f,n,d.oriCatTmp[g],a,b,b.showValues,b.yAxis);g.y=n;g.shadow=j;g.color={FCcolor:{color:y(h(f.color,b.fillColor)),alpha:i}};g.valuePosition=h(f.valueposition,
b.valuePosition);g.marker={enabled:b.drawAnchors,fillColor:{FCcolor:{color:y(h(f.anchorbgcolor,b.anchorBgColor)),alpha:(h(f.anchorbgalpha,b.anchorBgAlpha)*k/100).toString()}},lineColor:{FCcolor:{color:y(h(f.anchorbordercolor,b.anchorBorderColor)),alpha:k}},lineWidth:e(f.anchorborderthickness,b.anchorBorderThickness),radius:e(f.anchorradius,b.anchorRadius),symbol:sa(e(f.anchorsides,b.anchorSides)),startAngle:h(f.anchorstartangle,b.anchorAngle)};g.events={click:b.getLink};return g}}};$("mscolumn2dbase",
{point:function(a,b,c,d,f,g,n,i,j){var o;var a=!1,l=c.data||[],C=f[ba],F=h(b.type,this.defaultSeriesType),z=h(b.isStacked,f.plotOptions[F]&&f.plotOptions[F].stacking),m=h(this.isValueAbs,C.isValueAbs,!1),I=e(b.yAxis,0),Q=f[ba].numberFormatter,p=f.chart.paletteIndex,N,Y;Y=f._FCconf.isBar;if(!z)b.columnPosition=e(j,i,n);b.name=aa(c.seriesname);if(e(c.includeinlegend)===0||b.name===void 0)b.showInLegend=!1;b.color=h(c.color,f.colors[n%f.colors.length]).split(V)[0].replace(/^#?/g,"#");j=/3d$/.test(f.chart.defaultSeriesType);
Y=h(360-d.plotfillangle,Y?180:90);N<0&&(Y=360-Y);o=b._dataParser=Oa.column(f,{seriesname:b.name,color:h(c.color,f.colors[n%f.colors.length]),alpha:h(c.alpha,d.plotfillalpha,Aa),plotgradientcolor:V+(e(d.useplotgradientcolor,1)?ha(d.plotgradientcolor,k.plotGradientColor[p]):q),ratio:h(c.ratio,d.plotfillratio),fillAangle:Y,isRoundEdges:f.chart.useRoundEdges,plotBorderColor:h(d.plotbordercolor,j?Sa:k.plotBorderColor[p]).split(V)[0],plotBorderAlpha:d.showplotborder==xa||j&&d.showplotborder!=ya?xa:h(d.plotborderalpha,
Aa),isBar:this.isBar,is3d:j,dashed:e(c.dashed,d.plotborderdashed,0),dashLen:e(c.dashlen,d.plotborderdashlen,5),dashGap:e(c.dashgap,d.plotborderdashgap,4),borderWidth:h(d.plotborderthickness,ya),showValues:e(c.showvalues,C.showValues),yAxis:I,use3DLighting:e(d.use3dlighting,1),_sourceDataset:c},this),c=o;for(d=0;d<g;d+=1)(n=l[d])?(N=Q.getCleanValue(n.value,m),N===null?b.data.push({y:null}):(a=!0,n=c(n,d,N),b.data.push(n),n.previousY=this.pointValueWatcher(f,N,I,z,d,i,F))):b.data.push({y:null});if(!a&&
!this.realtimeEnabled)b.showInLegend=!1;return b},defaultSeriesType:"column"},fa);$("mslinebase",{hasVDivLine:!0,point:function(a,b,c,d,f,g,n){var o;var a=!1,i,j;i=f.chart;var l=c.data||[];j=f[ba];var C=h(b.type,this.defaultSeriesType),F=h(b.isStacked,f.plotOptions[C]&&f.plotOptions[C].stacking),z=h(this.isValueAbs,j.isValueAbs,!1),m=e(b.yAxis,0),I=this.numberFormatter,n=y(h(c.color,d.linecolor,f.colors[n%f.colors.length])),Q=h(c.alpha,d.linealpha,Aa),N=e(d.showshadow,this.defaultPlotShadow,1),p=
e(c.drawanchors,c.showanchors,d.drawanchors,d.showanchors),Y=e(c.anchorsides,d.anchorsides,0),r=e(c.anchorstartangle,d.anchorstartangle,90),ca=e(c.anchorradius,d.anchorradius,3),G=y(h(c.anchorbordercolor,d.anchorbordercolor,n)),x=e(c.anchorborderthickness,d.anchorborderthickness,1),w=y(h(c.anchorbgcolor,d.anchorbgcolor,k.anchorBgColor[f.chart.paletteIndex])),v=h(c.anchoralpha,d.anchoralpha,Aa),u=h(c.anchorbgalpha,d.anchorbgalpha,v);b.name=aa(c.seriesname);if(e(c.includeinlegend)===0||b.name===void 0||
Q==0&&p!==1)b.showInLegend=!1;b.marker={fillColor:{FCcolor:{color:w,alpha:u*v/100+q}},lineColor:{FCcolor:{color:G,alpha:v+q}},lineWidth:x,radius:ca,symbol:sa(Y),startAngle:r};b.color={FCcolor:{color:n,alpha:Q}};b.shadow=N?{opacity:N?Q/100:0}:!1;b.step=h(this.stepLine,b.step);b.drawVerticalJoins=Boolean(e(b.drawVerticalJoins,d.drawverticaljoins,1));b.useForwardSteps=Boolean(e(b.useForwardSteps,d.useforwardsteps,1));b.lineWidth=e(c.linethickness,d.linethickness,2);o=b._dataParser=Oa.line(f,{seriesname:b.name,
lineAlpha:Q,anchorAlpha:v,showValues:e(c.showvalues,j.showValues),yAxis:m,lineDashed:Boolean(e(c.dashed,d.linedashed,0)),lineDashLen:e(c.linedashlen,d.linedashlen,5),lineDashGap:e(c.linedashgap,d.linedashgap,4),lineThickness:b.lineWidth,lineColor:n,valuePosition:h(c.valueposition,i.valuePosition),drawAnchors:p,anchorBgColor:w,anchorBgAlpha:u,anchorBorderColor:G,anchorBorderThickness:x,anchorRadius:ca,anchorSides:Y,anchorAngle:r,_sourceDataset:c},this),i=o;for(d=0;d<g;d+=1)(j=l[d])?(c=I.getCleanValue(j.value,
z),c===null?b.data.push({y:null}):(a=!0,j=i(j,d,c),b.data.push(j),j.previousY=this.pointValueWatcher(f,c,m,F,d,0,C))):b.data.push({y:null});if(!a&&!this.realtimeEnabled)b.showInLegend=!1;return b},defaultSeriesType:"line",defaultPlotShadow:1,defaultZeroPlaneHighlighted:!1},fa);$("msareabase",{hasVDivLine:!0,point:function(a,b,c,d,f,g,n){var o;var a=!1,i=f.chart,j=c.data||[],l=f[ba],C=h(b.type,this.defaultSeriesType),F=h(b.isStacked,f.plotOptions[C]&&f.plotOptions[C].stacking),z=h(this.isValueAbs,
l.isValueAbs,!1),m=f.chart.paletteIndex,I=e(b.yAxis,0),Q=f[ba].numberFormatter,N=h(c.color,d.plotfillcolor,f.colors[n%f.colors.length]).split(V)[0].replace(/^#?/g,"#").split(V)[0],p=h(c.alpha,d.plotfillalpha,d.areaalpha,this.areaAlpha,70),Y=e(d.plotfillangle,270),n=h(c.plotbordercolor,d.plotbordercolor,d.areabordercolor,this.isRadar?f.colors[n%f.colors.length]:"666666").split(V)[0],r=h(c.showplotborder,d.showplotborder)==xa?xa:h(c.plotborderalpha,d.plotborderalpha,c.alpha,d.plotfillalpha,d.areaalpha,
"95"),ca=e(d.plotborderangle,270),G=e(c.anchorsides,d.anchorsides,0),x=e(c.anchorstartangle,d.anchorstartangle,90),w=e(c.anchorradius,d.anchorradius,3),v=y(h(c.anchorbordercolor,d.anchorbordercolor,N)),u=e(c.anchorborderthickness,d.anchorborderthickness,1),t=y(h(c.anchorbgcolor,d.anchorbgcolor,k.anchorBgColor[m])),ua=e(c.anchoralpha,d.anchoralpha,this.anchorAlpha,0),ea=e(c.anchorbgalpha,d.anchorbgalpha,ua);this.isRadar||(N+=V+(e(d.useplotgradientcolor,1)?ha(d.plotgradientcolor,k.plotGradientColor[m]):
q),N=N.replace(/,+?$/,""));b.step=h(this.stepLine,b.step);b.drawVerticalJoins=Boolean(e(b.drawVerticalJoins,d.drawverticaljoins,1));b.useForwardSteps=Boolean(e(b.useForwardSteps,d.useforwardsteps,1));b.name=h(c.seriesname);if(e(c.includeinlegend)===0||b.name===void 0)b.showInLegend=!1;b.fillColor={FCcolor:{color:N,alpha:p,ratio:Pa,angle:Y}};b.color=N;b.shadow={opacity:e(d.showshadow,1)?r/100:0};b.lineColor={FCcolor:{color:n,alpha:r,ratio:Aa,angle:ca}};b.lineWidth=h(c.plotborderthickness,d.plotborderthickness,
1);b.dashStyle=Boolean(e(c.dashed,d.plotborderdashed,0))?H(e(c.dashlen,d.plotborderdashlen,5),e(c.dashgap,d.plotborderdashgap,4),b.lineWidth):void 0;b.marker={fillColor:{FCcolor:{color:t,alpha:ea*ua/100+q}},lineColor:{FCcolor:{color:v,alpha:ua+q}},lineWidth:u,radius:w,symbol:sa(G),startAngle:x};o=b._dataParser=Oa.area(f,{seriesname:b.name,lineAlpha:r,anchorAlpha:ua,showValues:e(c.showvalues,l.showValues),yAxis:I,fillColor:N,fillAlpha:p,valuePosition:h(c.valueposition,i.valuePosition),drawAnchors:Boolean(e(d.drawanchors,
d.showanchors,1)),anchorBgColor:t,anchorBgAlpha:ea,anchorBorderColor:v,anchorBorderThickness:u,anchorRadius:w,anchorSides:G,anchorAngle:x,getLink:this.linkClickFN,_sourceDataset:c},this),c=o;for(i=0;i<g;i+=1)(l=j[i])?(d=l?Q.getCleanValue(l.value,z):null,d===null?b.data.push({y:null}):(a=!0,l=c(l,i,d),b.data.push(l),l.previousY=this.pointValueWatcher(f,d,I,F,i,0,C))):b.data.push({y:null});if(!a&&!this.realtimeEnabled)b.showInLegend=!1;return b},defaultSeriesType:"area",defaultPlotShadow:0},fa);$("scatterbase",
{showValues:0,defaultPlotShadow:0,rendererId:"cartesian",defaultSeriesType:"scatter",point:function(a,b,d,f,n,i,j){if(d.data){var l,C,F,z,m,I,Q,N,p,Y,r,ca,G,x,w,v,u,t=!1,ua;F=e(d.drawline,f.drawlines,0);z=e(d.drawprogressioncurve,0);var a=d.data,i=a.length,ea=e(d.showvalues,n[ba].showValues),B=this.numberFormatter,na=e(d.showregressionline,f.showregressionline,0);b.zIndex=1;b.name=aa(d.seriesname);if(e(d.includeinlegend)===0||b.name===void 0)b.showInLegend=!1;if(F||z)C=y(h(d.color,n.colors[j%n.colors.length])),
F=h(d.alpha,Aa),z=e(d.linethickness,f.linethickness,2),m=Boolean(e(d.linedashed,d.dashed,f.linedashed,0)),I=e(d.linedashlen,f.linedashlen,5),Q=e(d.linedashgap,f.linedashgap,4),b.color=g(h(d.linecolor,f.linecolor,C),e(d.linealpha,f.linealpha,F)),b.lineWidth=z,b.dashStyle=m?H(I,Q,z):void 0;F=Boolean(e(d.drawanchors,d.showanchors,f.drawanchors,f.showanchors,1));z=e(d.anchorsides,f.anchorsides,j+3);m=e(d.anchorradius,f.anchorradius,3);j=y(h(d.anchorbordercolor,d.color,f.anchorbordercolor,C,n.colors[j%
n.colors.length]));C=e(d.anchorborderthickness,f.anchorborderthickness,1);I=y(h(d.anchorbgcolor,f.anchorbgcolor,k.anchorBgColor[n.chart.paletteIndex]));Q=h(d.anchoralpha,d.alpha,f.anchoralpha,Aa);p=h(d.anchorbgalpha,d.alpha,f.anchorbgalpha,Q);h(d.anchorstartangle,f.anchorstartangle,90);b.marker={fillColor:this.getPointColor(I,Aa),lineColor:{FCcolor:{color:j,alpha:Q+q}},lineWidth:C,radius:m,symbol:sa(z)};if(na){b.events={hide:this.hideRLine,show:this.showRLine};var va={sumX:0,sumY:0,sumXY:0,sumXsqure:0,
sumYsqure:0,xValues:[],yValues:[]},ra=e(d.showyonx,f.showyonx,1),D=y(h(d.regressionlinecolor,f.regressionlinecolor,j)),oa=e(d.regressionlinethickness,f.regressionlinethickness,C),f=c(e(d.regressionlinealpha,f.regressionlinealpha,Q)),D=g(D,f)}for(l=0;l<i;l+=1)(N=a[l])?(f=B.getCleanValue(N.y),u=B.getCleanValue(N.x),f===null?b.data.push({y:null,x:u}):(t=!0,ua=this.getPointStub(N,f,B.xAxis(u),n,d,ea),Y=e(N.anchorsides,z),r=e(N.anchorradius,m),ca=y(h(N.anchorbordercolor,j)),G=e(N.anchorborderthickness,
C),x=y(h(N.anchorbgcolor,I)),w=h(N.anchoralpha,N.alpha,Q),v=h(N.anchorbgalpha,p),b.data.push({y:f,x:u,displayValue:ua.displayValue,toolText:ua.toolText,link:ua.link,marker:{enabled:F,fillColor:{FCcolor:{color:x,alpha:v*w/100+q}},lineColor:{FCcolor:{color:ca,alpha:w}},lineWidth:G,radius:r,symbol:sa(Y),startAngle:h(N.anchorstartangle,90)}}),this.pointValueWatcher(n,f,u,na&&va))):b.data.push({y:null});na&&(d=this.getRegressionLineSeries(va,ra,i),this.pointValueWatcher(n,d[0].y,d[0].x),this.pointValueWatcher(n,
d[1].y,d[1].x),n={type:"line",color:D,showInLegend:!1,lineWidth:oa,enableMouseTracking:!1,marker:{enabled:!1},data:d,zIndex:0},b=[b,n])}if(!t)b.showInLegend=!1;return b},categoryAdder:function(a,b){var c,d=0,f,n=b[ba].x,i,j=b.xAxis,l,C;C=a.chart;var F=parseInt(C.labelstep,10),z=e(C.showlabels,1),m=h(C.xaxislabelmode,"categories").toLowerCase(),I=b[ba].numberFormatter;b._FCconf.isXYPlot=!0;F=F>1?F:1;n.catOccupied={};if(m!=="auto"&&a.categories&&a.categories[0]&&a.categories[0].category){C=a.categories[0];
if(C.font)b.xAxis.labels.style.fontFamily=C.font;if((f=e(C.fontsize))!==void 0)f<1&&(f=1),b.xAxis.labels.style.fontSize=f+Ja,v(b.xAxis.labels.style);if(C.fontcolor)b.xAxis.labels.style.color=C.fontcolor.split(V)[0].replace(/^\#?/,"#");c=h(C.verticallinecolor,k.divLineColor[b.chart.paletteIndex]);f=e(C.verticallinethickness,1);i=e(C.verticallinealpha,k.divLineAlpha[b.chart.paletteIndex]);var Q=e(C.verticallinedashed,0),N=e(C.verticallinedashlen,4),p=e(C.verticallinedashgap,2),Y=g(c,i),ca,G,x;for(c=
0;c<C.category.length;c+=1)l=C.category[c],i=I.getCleanValue(l.x),i!==null&&!l.vline&&(n.catOccupied[i]=!0,x=e(l.showlabel,l.showname,z),ca=e(l.showverticalline,l.showline,l.sl,0),G=e(l.linedashed,Q),l=x===0||d%F!==0?q:D(r(l.label,l.name)),j.plotLines.push({isGrid:!0,isCat:!0,width:ca?f:0,color:Y,dashStyle:H(N,p,f,G),value:i,label:{text:l,style:j.labels.style,align:t,verticalAlign:S,textAlign:t,rotation:0,x:0,y:0}}),this.pointValueWatcher(b,null,i),d+=1);if(m==="mixed")n.requiredAutoNumericLabels=
e(this.requiredAutoNumericLabels,1)}else n.requiredAutoNumericLabels=e(this.requiredAutoNumericLabels,1);n.adjustMinMax=!0},getPointColor:function(b,d){var e,f,b=y(b),d=c(d);e=a(b,70);f=j(b,50);return{FCcolor:{gradientUnits:"objectBoundingBox",cx:0.4,cy:0.4,r:"100%",color:e+V+f,alpha:d+V+d,ratio:Pa,radialGradient:!0}}}},$.xybase);$("mscombibase",{series:function(a,b,c){var f,g,n,i,j=a.chart,k,l=[],C=[],F=[],z,m,I=b[ba],Q=this.isDual,N=0;b.legend.enabled=Boolean(e(a.chart.showlegend,1));if(a.dataset&&
a.dataset.length>0){this.categoryAdder(a,b);i=I.oriCatTmp.length;f=0;for(g=a.dataset.length;f<g;f+=1)switch(n=a.dataset[f],z=Q&&h(n.parentyaxis,"p").toLowerCase()==="s"?!0:!1,k={visible:!!e(n.visible,1),legendIndex:f,data:[]},z?(k.yAxis=1,m=r(n.renderas,this.secondarySeriesType)):m=r(n.renderas,this.defaultSeriesType),m=m.toLowerCase(),m){case "line":case "spline":k.type="line";l.push($.mslinebase.point.call(this,c,k,n,j,b,i,f));break;case "area":case "splinearea":k.type="area";b.chart.series2D3Dshift=
!0;F.push($.msareabase.point.call(this,c,k,n,j,b,i,f));break;case "column":case "column3d":C.push($.mscolumn2dbase.point.call(this,c,k,a.dataset[f],j,b,i,f,void 0,N));N+=1;break;default:z?(k.type="line",l.push($.mslinebase.point.call(this,c,k,n,j,b,i,f))):(C.push($.mscolumn2dbase.point.call(this,c,k,a.dataset[f],j,b,i,f,void 0,N)),N+=1)}j.areaovercolumns!=="0"?(b.chart.areaOverColumns=!0,b.series=b.series.concat(C,F,l)):(b.chart.areaOverColumns=!1,b.series=b.series.concat(F,C,l));if(C.length===0)I.hasNoColumn=
!0;else if(!this.isStacked){c=0;for(f=C.length;c<f;c+=1)C[c].numColumns=f}this.configureAxis(b,a);a.trendlines&&d(a.trendlines,b.yAxis,b[ba],Q,this.isBar)}}},$.mscolumn2dbase)}]);
toRaphaelcolor=FusionCharts(["private","modules.renderer.js-renderer",function(){var i=this,l=i.hcLib,w=l.Raphael,q=l.chartAPI,d=window,h=/msie/i.test(navigator.userAgent)&&!d.opera,aa=document,e=w.type==="VML",k=l.BLANKSTRING,r="crisp",ha="rgba(192,192,192,"+(h?0.0020:1.0E-6)+")",D=Math.round,ba=l.stubFN,E={pageX:0,pageY:0},H=parseFloat,L=parseInt,B=l.extend2,ia=l.addEvent,P=l.removeEvent,M=l.pluck,x=l.pluckNumber,m=l.graphics.HEXtoRGB,p=l.setImageDisplayMode,R=l.falseFN,Z=l.FC_CONFIG_STRING,O=/\s\bx\b=['"][^'"]+?['"]/ig,
X=/\s\by\b=['"][^'"]+?['"]/ig,K=l.isArray=function(){if(Array.isArray)return Array.isArray;var a=Object.prototype.toString,b=a.call([]);return function(c){return a.call(c)===b}}(),y=l.each=function(a,b,c,d){var e;c||(c=a);d||(d={});if(K(a))for(e=0;e<a.length;e+=1){if(b.call(c,a[e],e,a,d)===!1)return e}else if(!(a===null||a===void 0))for(e in a)if(b.call(c,a[e],e,a,d)===!1)return e},v=l.createElement,b=l.createContextMenu,c=l.toRaphaelColor=function(){var a={};return function(b){var c=(b=b||this)&&
b.FCcolor||b,d=c.color,e=c.ratio,f=c.angle,g=c.alpha,h=c.r,i=c.cx,j=c.cy,l=c.fx,p=c.fy,q=c.gradientUnits,r=c.x1,x=c.y1,w=c.x2,G=c.y2,v=1,u,t,y,A;if(typeof b==="string")return a[A="~"+b]||(a[A]=b.replace(/^#?([a-f0-9]{3,6})/ig,"#$1"));d=d||k;if(!d)return u;A=[d,g,e,f,h,i,j,q,l,p,r,w,x,G].join("_").replace(/[\(\)\s,\xb0#]/g,"_");if(a[A])return a[A];e=e&&(e+k).split(",")||[];g=(g||g===0)&&(g+k).split(",")||[];if(d=d.split(","))if(u=k,d.length===1)y=d[0].replace(/^#?([a-f0-9]{3,6})/ig,"$1"),u=g.length?
"rgba("+m(y).join(",")+","+H(g[0])*0.01+")":y.replace(/^#?([a-f0-9]{3,6})/ig,"#$1");else{b=0;for(t=d.length;b<t;b++)y=d[b].replace(/^#?([a-f0-9]{3,6})/ig,"$1"),isNaN(e[b])||(e[b]=H(e[b]),y+=":"+e[b],isNaN(e[b+1])||(e[b+1]=H(e[b+1])+e[b])),!isNaN(g[b])&&g[b]!==k&&(v=g[b]*0.01),d[b]="rgba("+m(y).join(",")+","+v+")",isNaN(e[b])||(d[b]=d[b]+":"+e[b]);u+=d.join("-");if(h!==void 0||l!==void 0||i!==void 0||c.radialGradient)u="xr("+[l,p,h,i,j,q].join(",")+")"+u;else{u="-"+u;if(r!==void 0||x!==void 0||w!==
void 0||G!==void 0)u="("+[r,x,w,G,q].join(",")+")"+u;f===void 0&&(f=0);u=360-H(f)%360+u}}return a[A]=u}}();l.gradientify=function(){return function(){return""}}();var j=l.hasTouch,a=j?10:3,g=l.getSentenceCase,f=l.getCrispValues,t=l.getValidValue,x=l.pluckNumber,u=l.getFirstValue,S=l.regex.dropHash,U=l.HASHSTRING,Na=function(a){return a!==Ua&&a!==null},$=function(a,b){a[1]===a[4]&&(a[1]=a[4]=D(a[1])+b%2/2);a[2]===a[5]&&(a[2]=a[5]=D(a[2])+b%2/2);return a},Ua,fa=document.documentMode===8?"visible":"",
r="crisp",sa=Math,V=sa.sin,pa=sa.cos,xa=sa.atan2,D=sa.round,ya=sa.min,Aa=sa.max,Ja=sa.abs,Va=sa.ceil,ja=sa.floor,Da=sa.PI,bb=Da/2,Pa=2*Da,Sa=Da+bb,Ca=l.getFirstColor,$a=l.graphics.getDarkColor,Ia=l.graphics.getLightColor,ha="rgba(192,192,192,"+(h?0.0020:1.0E-6)+")",cb=l.POSITION_TOP,ab=l.POSITION_BOTTOM,eb=l.POSITION_RIGHT,Za=l.POSITION_LEFT;w.ca.ishot=function(a){if(this.removed)return!1;var b=this.node,a=a||"";b.ishot=a;switch(this.type){case "group":for(b=this.bottom;b;)b.attr("ishot",a),b=b.next;
break;case "text":if(w.svg)for(b=b.getElementsByTagName("tspan")[0];b;)b.ishot=a,b=b.nextSibling}return!1};w.addSymbol({printIcon:function(a,b,c){var d=c*0.75,e=c*0.5,f=c*0.33,g=D(a-c)+0.5,h=D(b-c)+0.5,i=D(a+c)+0.5,c=D(b+c)+0.5,j=D(a-d)+0.5,k=D(b-d)+0.5,d=D(a+d)+0.5,l=D(b+e)+0.5,m=D(a+e)+0.5,p=D(b+f)+0.5,a=D(a-e)+0.5,f=D(b+f+f)+0.5;return["M",j,h,"L",d,h,d,k,j,k,"Z","M",g,k,"L",g,l,j,l,j,b,d,b,d,l,i,l,i,k,"Z","M",j,b,"L",j,c,d,c,d,b,"Z","M",m,p,"L",a,p,"M",m,f,"L",a,f]},exportIcon:function(a,b,c){var d=
c*0.66,e=d*0.5,f=D(a-c)+0.5,g=D(b-c)+0.5,h=D(a+c)+0.5,c=D(b+c)-0.5,i=D(a-e)+0.5,j=b<c-3?c-3:D(b)+0.5,e=D(a+e)-0.5,k=D(a+d)-0.5,d=D(a-d)+0.5;return["M",f,j,"L",f,c,h,c,h,j,h,c,f,c,"Z","M",a,c-1,"L",d,b,i,b,i,g,e,g,e,b,k,b,"Z"]}});l.rendererRoot=q("renderer.root",{standaloneInit:!1,isRenderer:!0,inited:!1,callbacks:[],init:function(a,b,c){var n;var d=this,e=d.container=b.chart.renderTo,f=b.tooltip,g=d.layer;d.options=b;d.logic=a;d.definition=a.dataObj;d.smartLabel=a.smartLabel;d.numberFormatter=a.numberFormatter;
d.fusionCharts=a.chartInstance;d.linkClickFN=a.linkClickFN;e.innerHTML=k;n=d.paper=w(e,e.offsetWidth||a.width,e.offsetHeight||a.height),e=n;d.chartWidth=e.width;d.chartHeight=e.height;if(!d.elements)d.elements={};if(!g)g=d.layers={},g.background=g.background||e.group("background"),g.dataset=g.dataset||e.group("dataset").insertAfter(g.background),g.tracker=g.tracker||e.group("hot").insertAfter(g.dataset);f&&f.enabled!==!1&&e.tooltip(f.style,f.shadow,f.constrain);d.setMargins();d.drawBackground();d.drawButtons();
d.drawGraph();b.legend&&b.legend.enabled&&d.drawLegend();d.drawCaption();d.drawLogo();d.setChartEvents();d.drawLabels&&d.drawLabels();y(b.callbacks,function(a){a.apply(d,this)},[a]);y(d.callbacks,function(a){a.apply(d,this)},[a]);d.hasRendered=!0;c&&c(d)},reinit:function(a,b,c){this.hasRendered||this.init(b,c)},dispose:function(){this.disposing=!0;this.paper&&(this.paper.remove(),delete this.paper);this.exportIframe&&(this.exportIframe.parentNode.removeChild(this.exportIframe),delete this.exportIframe);
delete this.disposing;this.disposed=!0},onContainerClick:function(a){var b=a.target||a.originalTarget||a.srcElement||a.relatedTarget||a.fromElement,a=a.data;(!b||!b.ishot||!a)&&a.linkClickFN.call(a,a)},setChartEvents:function(){var a=this.options.chart.link,b=this.container;P(b,"click",this.onContainerClick);if(a)this.link=a,ia(b,"click",this.onContainerClick,this);this.paper.canvas.style.cursor=w.svg?a&&"pointer"||"default":a&&"hand"||"default"},onOverlayMessageClick:function(){var a=this.elements;
w.animation({opacity:0},1E3);a.messageText&&a.messageText.hide();a.messageVeil&&a.messageVeil.hide()},showMessage:function(a,b){var c=this.paper,d=this.options.chart,e=this.elements,f=e.messageText,g=e.messageVeil,h=c.width,i=c.height;if(!g)g=e.messageVeil=c.rect(0,0,h,i).attr({fill:"rgba(0,0,0,0.2)",stroke:"none"});g.show().toFront().attr("cursor",b?"pointer":"default")[b?"click":"unclick"](this.onOverlayMessageClick,this);if(!f)f=e.messageText=c.text(h/2,i/2,k).attr({fill:"rgba(255,255,255,1)",
"font-family":"Verdana","font-size":10,"line-height":14,ishot:!0});a=a||k;this.smartLabel.setStyle({"line-height":"14px","font-family":"Verdana","font-size":"10px"});c=this.smartLabel.getSmartText(a,h-(d.spacingRight||0)-(d.spacingLeft||0),i-(d.spacingTop||0)-(d.spacingBotton||0));f.attr({text:c.text,ishot:!0,cursor:b?"pointer":"default"})[b?"click":"unclick"](this.onOverlayMessageClick,this).show().toFront()},drawButtons:function(){var a=this,c=a.logic.rendererId==="zoomline",d=a.paper,e=a.elements,
f=a.toolbar||(a.toolbar=[]),g=a.menus||(a.menus=[]),h=a.layers,i=a.options,j=i[Z],j=j&&j.outCanvasStyle||a.logic.outCanvasStyle||{},k=i.chart.toolbar||{},l=k.hDirection,m=c?1:k.vDirection,p=k.button||{};f.count=0;var q=p.scale,r=p.width*p.scale,x=p.height*p.scale,G=l*(p.spacing*p.scale+r),u=p.radius;f.y||(f.y=(c?0:k.y)+k.vMargin*m+ya(0,x*m));f.x||(f.x=k.x+k.hMargin*l-Aa(0,r*l));var k=(c=i.exporting)&&c.buttons||{},i=k.exportButton&&k.exportButton.enabled!==!1,k=k.printButton&&k.printButton.enabled!==
!1,v,t=h.buttons||(h.buttons=d.group("buttons"));f.add=function(a,b,c){var c=typeof c==="string"?{tooltip:c}:c||{},e=f.count===0?G-l*p.spacing*p.scale:G,e=c.x||(f.x+=e),g=c.tooltip||"";f.push(a=d.button(e,c.y||f.y,Ua,a,{width:r,height:x,r:u,id:f.count++,verticalPadding:p.symbolHPadding*q,horizontalPadding:p.symbolHPadding},t).attr({ishot:!0,fill:[p.fill,p.labelFill,p.symbolFill,p.hoverFill],stroke:[p.stroke,p.symbolStroke],"stroke-width":[p.strokeWidth,p.symbolStrokeWidth]}).tooltip(g).buttonclick(b));
return a};if(i)g.push(v=e.exportMenu=b({chart:a,labels:{style:j,hover:{color:"rgba(255, 255, 255, 1)"}},attrs:{fill:"rgba(255, 255, 255, 1)"},hover:{fill:w.tintshade(j.color,0.7)},items:function(b){var c=[],d;for(d in b)c.push({text:b[d],onclick:function(b){return function(){a.logic.chartInstance.exportChart({exportFormat:b})}}(d)});return c}(c.exportformats)})),e.exportButton=f.add("exportIcon",function(a,b){return function(){v.visible?v.hide():v.show({x:a,y:b+1})}}(f.x+r,f.y+x),{tooltip:"Export chart"});
if(k)e.printButton=f.add("printIcon",function(){a.print()},{tooltip:"Print chart"})},setMargins:function(){var a=this.paper,b=this.options.chart||{};this.canvasBorderWidth=b.plotBorderWidth||0;this.canvasTop=D(b.marginTop)||0;this.canvasLeft=D(b.marginLeft)||0;this.canvasWidth=D(a.width-(b.marginLeft||0)-(b.marginRight||0));this.canvasHeight=D(a.height-(b.marginTop||0)-(b.marginBottom||0));this.canvasRight=this.canvasLeft+this.canvasWidth;this.canvasBottom=this.canvasTop+this.canvasHeight},drawBackground:function(){var a=
this.paper,b=this.layers,d=this.elements,e=b.background||(b.background=a.group("background")),b=d.background||(d.background=a.rect(e)),f=this.options.chart||{},g=H(f.borderWidth)||0,h=g*0.5,i=f.borderWidth||0,j=this.chartHeight,k=this.chartWidth,l=d.backgroundImage,m=f.bgSWF,q=f.bgSWFAlpha/100,r=f.bgImageDisplayMode,x=f.bgImageVAlign,u=f.bgImageHAlign,G=f.bgImageScale,w=i+","+i+","+(k-i*2)+","+(j-i*2),v,t,y,A,B,o,D;a.canvas.style.backgroundColor=f.containerBackgroundColor;b.attr({x:h,y:h,width:a.width-
g,height:a.height-g,stroke:f.borderColor,"stroke-width":g,fill:c(f.backgroundColor)});if(m)v=new Image,B=y=1,l=[],v.onload=function(){t=p(r,x,u,G,i,k,j,v);t["clip-rect"]=w;if(t.tileInfo){y=t.tileInfo.xCount;B=o=t.tileInfo.yCount;D=t.y;for(delete t.tileInfo;y;)if(o-=1,A?(l[void 0]=A.clone().attr({x:t.x,y:t.y}),e.appendChild(l[void 0])):l[void 0]=A=a.image(m,e).attr(t).css({opacity:q}),t.y+=t.height,o===0)o=B,y-=1,t.x+=t.width,t.y=D}else l[0]=a.image(m,e),l[0].attr(t).css({opacity:q}).attr({visibility:fa,
"clip-rect":w})},v.src=m,d.backgroundImage=l},drawGraph:function(){var a=this,b=a.paper,c=a.plots=a.elements.plots,d=a.logic,e=a.layers,f=a.options,h=a.elements,i=f.chart,f=a.datasets=f.series,j=u(i.rendererId,i.defaultSeriesType),k=e.background,k=e.dataset=e.dataset||b.group("dataset").insertAfter(k);e.tracker=e.tracker||b.group("hot").insertAfter(k);var l,m;a.drawCanvas();a.drawAxes();if(!c)c=a.plots=a.plots||[],h.plots=c;b=0;for(e=f.length;b<e;b++){l=f[b]||{};h=l.updatePlot="updatePlot"+g(M(l.type,
l.plotType,j));h=a[h];k=l.drawPlot="drawPlot"+g(M(l.type,l.plotType,j));k=a[k]||a.drawPlot;if(!(m=c[b]))c.push(m={index:b,items:[],data:l.data||[],name:l.name,userID:l.userID,setVisible:function(a){return function(b){var e=c[a],b=u(b,!e.visible),f={hcJSON:{series:[]}},g=f.hcJSON.series[a]||(f.hcJSON.series[a]={}),h=d.chartInstance.jsVars._reflowData,n=b?"visible":"hidden";y(e.graphics,function(a){a.attr("visibility",n)});e.visible=b;l.visible=b;g.visible=b;B(h,f,!0)}}(b),legendClick:function(b){return function(d,
e){a["legendClick"+j]&&a["legendClick"+j](c[b],d,e)||a.legendClick&&a.legendClick(c[b],d,e)}}(b),realtimeUpdate:function(b,d,e){return function(f,g){d.call(a,c[b],e,{numUpdate:f,hasAxisChanged:g})}}(b,h||k,l)}),l.plot=m,l.legendClick=m.legendClick,l.setVisible=m.setVisible;k.call(a,m,l)}i.hasScroll&&(a.drawScroller(),a.finalizeScrollPlots())},drawPlot:ba,drawCanvas:ba,drawAxes:ba,drawScroller:function(){},drawLegend:function(){var n;var a=this,b=a.options,c=a.paper,d=b.chart||{},e=b.legend,f=e.scroll,
b={elements:{}},h=b.elements,i=a.layers.legend,j=h.box,l=h.caption,m=h.elementGroup,p=e.layout==="vertical",q=d.spacingTop,r=d.spacingBottom,u=d.spacingLeft,v=d.spacingRight,G=c.width,t=c.height,y=e.width,T=e.height,D=e.borderRadius,A=e.backgroundColor,J=e.borderColor,o=e.borderWidth||0,H=o*0.5,E=o*0.5+2,d=x(e.padding,4),L=d*0.5,M,W,s,K,O,P,V;p?(p=G-v-y,q=q+(t-r-q-T)*0.5+(e.y||0)):(p=u+(G-u-v-y)*0.5+(e.x||0),q=t-r-T);r=w.crispBound(p,q,y,T,o);p=r.x;q=r.y;y=r.width;T=r.height;if(!i)i=a.layers.legend=
c.group("legend").insertBefore(a.layers.tracker).translate(p,q);e.legendAllowDrag&&(W=p,s=q,i.css({cursor:"move"}).drag(function(a,b){K=P+a;O=V+b;K+y+E>G&&(K=G-y-E);O+T+E>t&&(O=t-T-E);K<E&&(K=E);O<E&&(O=E);i.translate(K-W,O-s);W=K;s=O},function(){P=W;V=s}));if(!j)j=h.box=c.rect(i);j.attr({x:0,y:0,width:y,height:T,r:D,stroke:J,"stroke-width":o,fill:A||"none",ishot:e.legendAllowDrag}).shadow(e&&e.shadow);f&&f.enabled?(M=T-d,j=","+y+","+M,m=h.elementGroup=c.group("legenditems",i).attr({"clip-rect":"0,"+
L+j}),n=h.scroller||(h.scroller=c.scroller(y-10+L-o,H,10,T-o,!1,{scrollPosition:f.scrollPosition||0,scrollRatio:(M+d)/e.totalHeight,showButtons:!1,displayStyleFlat:f.flatScrollBars},i)),f=n,f.attr("fill",e.legendScrollBgColor).scroll(function(b){m.transform(["T",0,(M-e.totalHeight)*b]);B(a.fusionCharts.jsVars._reflowData,{hcJSON:{legend:{scroll:{position:b}}}},!0)})):m=h.elementGroup=i;if(e.title&&e.title.text!==k){if(!l)l=h.caption=c.text(m);l.attr({text:e.title.text,title:e.title.originalText||
"",x:y*0.5,y:d,fill:e.title.style.color,"vertical-align":"top"}).css(e.title.style)}this["draw"+g(e.type||"point")+"LegendItem"](b)},drawPointLegendItem:function(a){var z;var n;var b=this.paper,d=this.options,e=d.series,f=d.chart.defaultSeriesType,d=d.legend,g=d.legendHeight,h=d.symbolPadding,i=d.textPadding||2,j=x(d.padding,4),k=d.itemHiddenStyle,l=d.itemStyle,m=l.color,k=k&&k.color||"#CCCCCC",p=d.symbolWidth,q=d.itemWidth,r=d.interactiveLegend!==!1,u=a.elements,G=u.elementGroup,a=a.item=[],u=u.item=
[],v=[],w={line:!0,spline:!0,scatter:!0,bubble:!0,dragnode:!0,zoomline:!0},t,y,A,J,o,D,H,E,L,W,s,K,O,P;W=0;for(K=e.length;W<K;W+=1)if((A=e[W])&&A.showInLegend!==!1)if(D=A.type||f,A.legendType==="point"){A=A.data||[];s=0;for(E=A.length;s<E;s+=1)if(o=A[s]||{},o.showInLegend!==!1)o._legendType=D,v.push(o)}else switch(A._legendType=D,D){case "pie":case "pie3d":case "funnel":case "pyramid":v=A.data;break;default:v.push(A)}v.sort(function(a,b){return(a.legendIndex||0)-(b.legendIndex||0)||a.__i-b.__i});
d.reversed&&v.reverse();e=d.initialItemX||0;f=d.initialItemY||0;W=0;for(K=v.length;W<K;W+=1)if(v[W].showInLegend!==!1)if(s={elements:{},hiddenColor:k,itemTextColor:m},a.push(s),u.push(s.elements),t=v[W],H=e+t._legendX+j,E=f+t._legendY-j,L=t._legendH,y=t._legendType||D,A=t.visible!==!1,J=s.itemLineColor=c(t.color||{}),o=r?function(a){return function(){a.legendClick()}}(t):R,t.plot.legend=s,s.elements.legendItemBackground=b.rect(H,E,q,L,0,G).click(o).attr({fill:c(t.legendFillColor||ha),"stroke-width":1,
stroke:c(t.legendBorderColor||"none"),cursor:l.cursor||"pointer",ishot:r}),s.elements.legendItemText=b.text(H+g+i-2,E+(t._legendTestY||0),t.name,G).css(l).click(o).attr({fill:A?m:k,"vertical-align":"top","text-anchor":"start",cursor:l.cursor||"pointer",title:t.originalText||"",ishot:r}),w[y]){y=E+h+p*0.5;if(t.lineWidth)P=s.elements.legendItemLine=b.path(["M",H+h,y,"L",H+h+p,y],G).click(o).attr({"stroke-width":t.lineWidth,stroke:A?J:k,cursor:l.cursor||"pointer",ishot:r});if(t&&(O=t.marker)&&O.enabled!==
!1)s.symbolStroke=c(M(O.lineColor&&(O.lineColor.FCcolor&&O.lineColor.FCcolor.color.split(",")[0]||O.lineColor),J)),O.fillColor&&O.fillColor.FCcolor?(y=B({},O.fillColor),y.FCcolor.alpha="100"):y=M(O.fillColor,J),s.symbolColor=c(y),t=p*0.5,H=H+h+t,y=E+h+t,P&&(t*=0.6),E=O.symbol.split("_"),J=E[0]==="spoke"?1:0,n=E[1]?s.elements.legendItemSymbol=b.polypath(E[1],H,y,t,O.startAngle,J,G):s.elements.legendItemSymbol=b.circle(H,y,t,G),E=n,E.click(o).attr({cursor:l.cursor||"pointer",stroke:A?s.symbolStroke:
k,fill:A?s.symbolColor:k,"stroke-width":1,ishot:r})}else E=this.getSymbolPath(H+h,E+h,p,p,y,t),s.symbolColor=c(E.color),s.symbolStroke=c(E.strokeColor),z=s.elements.legendItemSymbol=b.path(E.path,G).click(o).attr({"stroke-width":E.strokeWidth,stroke:A?s.symbolStroke:k,fill:A?s.symbolColor:k,cursor:l.cursor||"pointer",ishot:r}),E=z;d.reversed&&v.reverse()},drawCaption:function(){var n;var a=this.options.chart,b=this.options.title,c=this.options.subtitle,d=this.paper,e=this.elements,f=this.layers,g=
f.caption,h=e.caption,i=e.subcaption,j=b&&b.text,k=c&&c.text,l=(this.canvasLeft||0)+x(this.canvasWidth,d.width)/2,m=b.x,p=c&&c.x;if((j||k)&&!g)g=f.caption=d.group("caption"),f.tracker?g.insertBefore(f.tracker):g.insertAfter(f.dataset);if(j){if(!h)h=e.caption=d.text(g);if(m===void 0)m=l,b.align="middle";h.css(b.style).attr({text:b.text,fill:b.style.color,x:m,y:b.y||a.spacingTop||0,"text-anchor":b.align||"middle","vertical-align":"top",visibility:"visible",title:b.originalText||""})}else if(h)n=e.caption=
h.remove(),h=n;if(k){if(!i)i=e.subcaption=d.text(g);if(p===void 0)p=l,c.align="middle";i.css(c.style).attr({text:c.text,title:c.originalText||"",fill:c.style.color,x:p,y:j?h.attrs.y+h.getBBox().height+2:b.y||a.spacingTop||0,"text-anchor":c.align||"middle","vertical-align":"top",visibility:"visible"})}else if(i)e.subcaption=i.remove();if(!j&&!k&&g)f.caption=g.remove()},drawLogo:function(){var a=this.paper,b=this.elements,c=this.options,d=c.credits,e=c.chart||{},f=e.borderWidth||0,g=this.chartHeight,
h=this.chartWidth,i=b.logoImage,j=this.layers.tracker,k=e.logoURL,l=e.logoAlpha/100,m=e.logoPosition,q=e.logoLink,r=e.logoScale,x=e.logoLeftMargin,t=e.logoTopMargin,v=f+","+f+","+(h-f*2)+","+(g-f*2),c={tr:{vAlign:cb,hAlign:eb},bl:{vAlign:ab,hAlign:Za},br:{vAlign:ab,hAlign:eb},cc:{vAlign:"middle",hAlign:"middle"}},u,w;this.logic&&d.enabled&&a.text().attr({text:d.text,x:6,y:g-4,"vertical-align":ab,"text-anchor":"start",fill:"rgba(0,0,0,0.5)",title:d.title||""}).css({fontSize:9,fontFamily:"Verdana",
cursor:"pointer",_cursor:"hand"}).click(function(){e.events.click.call({link:d.href})});if(k)u=new Image,(m=c[m])||(m={vAlign:cb,hAlign:Za}),u.onload=function(){w=p("none",m.vAlign,m.hAlign,r,f,h,g,u);i=a.image(k);j.appendChild(i);w["clip-rect"]=v;i.attr(w).translate(x,t).css({opacity:l});q&&i.css({cursor:"pointer",_cursor:"hand"}).click(function(){e.events.click.call({link:q})})},u.src=k,b.logoImage=i},legendClick:function(a,b,c){var d=a.legend,e=d.elements.legendItemText,f=d.elements.legendItemSymbol,
g=d.elements.legendItemLine,h=d.hiddenColor,j=d.itemLineColor,k=d.itemTextColor,l=d.symbolColor,m=d.symbolStroke,d=M(b,!a.visible);a.setVisible(b);c!==!0&&(b={datasetName:a.name,datasetIndex:a.index,id:a.userID,visible:d},i.raiseEvent("legenditemclicked",b,this.logic.chartInstance));d?(f.attr({fill:l||j,stroke:m}),e.attr({fill:k}),g&&g.attr({stroke:j})):(f.attr({fill:h,stroke:h}),e.attr({fill:h}),g&&g.attr({stroke:h}));if((a=this.datasets&&this.datasets[a.index]&&this.datasets[a.index].relatedSeries)&&
a instanceof Array&&a.length>0)for(e=a.length;e--;)f=parseFloat(a[e]),(f=this.plots[f])&&f.legend&&f.legendClick.call(f,d,!1)},exportChart:function(a){var b=this.elements,c=b.printButton,d=b.exportButton,e=this.fusionCharts,f=e.id,g=this.paper,h=this.options,a=typeof a==="object"&&function(a){var b={},c;for(c in a)b[c.toLowerCase()]=a[c];return b}(a)||{},j=B(B({},h.exporting),a),m=(j.exportformat||"png").toLowerCase(),a=j.exporthandler,p=(j.exportaction||k).toLowerCase(),b=j.exporttargetwindow||k,
q=j.exportfilename,r=j.exportparameters,x;if(!h.exporting||!h.exporting.enabled||!a)return!1;c&&c.attrs.visibility!="hidden"&&c.attr({visibility:"hidden"});d&&d.attrs.visibility!="hidden"&&d.attr({visibility:"hidden"});h=g.toSVG();c&&c.attr({visibility:"visible"});d&&d.attr({visibility:"visible"});h=h.replace(/(\sd\s*=\s*["'])[M\s\d\.]*(["'])/ig,"$1M 0 0 L 0 0$2");m==="pdf"&&(h=h.replace(/<(\b[^s\s]+\b)[^\>]+?opacity\s*=\s*['"][^1][^\>]+?(\/>|>[\s\r\n]*?<\/\1>)/ig,function(a,b){var c=O.exec(a)||k,
d=X.exec(a)||k;return a+"<"+b+c+d+' opacity="1" stroke-opacity="1" fill="#cccccc" stroke-width="0" r="0" height="0.5" width="0.5" d="M 0 0 L 1 1" />'}));c={charttype:e.src,stream:h,stream_type:"svg",meta_bgColor:j.bgcolor||"",meta_DOMId:e.id,meta_width:g.width,meta_height:g.height,parameters:["exportfilename="+q,"exportformat="+m,"exportaction="+p,"exportparameters="+r].join("|")};if(p==="download"){if(/webkit/ig.test(navigator.userAgent)&&b==="_self"&&(b=d=f+"export_iframe",!this.exportIframe))this.exportIframe=
d=v("IFRAME",{name:d,width:"1px",height:"1px"},aa.body),d.style.cssText="position:absolute;left:-10px;top:-10px;";a=v("form",{method:"POST",action:a,target:b,style:"display:none;"},aa.body);for(x in c)v("input",{type:"hidden",name:x,value:c[x]},a);a.submit();aa.body.removeChild(a);a=void 0}else x=new i.ajax(function(a){var b={};a.replace(RegExp("([^?=&]+)(=([^&]*))?","g"),function(a,c,d,e){b[c]=e});l.raiseEvent("exported",b,e,[b])},function(a){a={statusCode:0,statusMessage:"failure",error:a,DOMId:f,
width:g.width,height:g.height};l.raiseEvent("exported",a,e,[a])}),x.post(a,c);return!0},print:function(){var a=this,b=a.container,c=a.elements,e=c.printButton,f=c.exportButton,g=[],h=b.parentNode,c=aa.body,i=c.childNodes;if(!a.isPrinting)a.isPrinting=!0,y(i,function(a,b){if(a.nodeType==1)g[b]=a.style.display,a.style.display="none"}),e&&e.attrs.visibility!="hidden"&&e.attr({visibility:"hidden"}),f&&f.attrs.visibility!="hidden"&&f.attr({visibility:"hidden"}),c.appendChild(b),d.print(),setTimeout(function(){e&&
e.attr({visibility:"visible"});f&&f.attr({visibility:"visible"});h.appendChild(b);y(i,function(a,b){if(a.nodeType==1)a.style.display=g[b]});a.isPrinting=!1},1E3)},getSymbolPath:function(a,b,c,d,e,f){var g=["M"],h,i,j,l;h=(f.color&&Ca(typeof f.color==="string"?f.color:f.color.FCcolor.color)||k).replace(S,"");i=Ia(h,40);l=$a(h,60).replace(S,U);h={FCcolor:{color:h+","+h+","+i+","+h+","+h,ratio:"0,30,30,30,10",angle:0,alpha:"100,100,100,100,100"}};switch(e){case "column":case "dragcolumn":case "column3d":i=
c*0.25;j=i*0.5;e=d*0.7;f=d*0.4;g=g.concat([a,b+d,"l",0,-e,i,0,0,e,"z","m",i+j,0,"l",0,-d,i,0,0,d,"z","m",i+j,0,"l",0,-f,i,0,0,f,"z"]);h.FCcolor.angle=270;break;case "bar":case "bar3d":i=c*0.3;j=c*0.6;e=d/4;f=e/2;g=g.concat([a,b,"L",a+j,b,a+j,b+e,a,b+e,"Z","M",a,b+e+f,"L",a+c,b+e+f,a+c,b+e+f+e,a,b+2*e+f,"Z","M",a,b+2*(e+f),"L",a+i,b+2*(e+f),a+i,b+d,a,b+d,"Z"]);break;case "area":case "area3d":case "areaspline":case "dragarea":e=d*0.6;f=d*0.2;d*=0.8;g=g.concat([a,b+d,"L",a,b+e,a+c*0.3,b+f,a+c*0.6,b+
e,a+c,b+f,a+c,b+d,"Z"]);h.FCcolor.angle=270;break;case "pie":case "pie3d":i=c/2;j=c*0.7;e=d/2;g=g.concat([a+i,b+e,"L",a+j,b,"A",i,e,0,0,0,a,b+e,"L",a+i,b+e,"M",a+i,b+e,"L",a,b+e,"A",i,e,0,0,0,a+j,b+d,"L",a+i,b+e,"M",a+i,b+e,"L",a+j,b+d,"A",i+1,e+1,0,0,0,a+j,b,"Z"]);break;case "boxandwhisker2d":g=g.concat([a,b,"L",a+c,b,a+c,b+d,a,b+d,"Z"]);h=f.color;l="#000000";break;default:g=g.concat([a,b,"L",a+c,b,a+c,b+d,a,b+d,"Z"]),h.FCcolor.angle=270,h.FCcolor.ratio="0,70,30"}return{path:g,color:h,strokeWidth:0.5,
strokeColor:l}}});var La=function(a,b,c,d){this.axisData=a||{};b=this.renderer=b;a=b.paper;this.globalOptions=b.options;var e=b.layers,b=c?"y-axis":"x-axis",f=this.layerAboveDataset=e.layerAboveDataset,g=this.layerBelowDataset=e.layerBelowDataset,e=f.bands||(f.bands=[]),h=e.length,i=g.bands||(g.bands=[]),j=i.length,k=f.lines||(f.lines=[]),l=k.length,m=g.lines||(g.lines=[]),p=m.length,f=f.labels||(f.labels=[]),q=f.length,g=g.labels||(g.labels=[]),r=g.length;this.isVertical=c;this.topBandGroup=this.topBandGroup||
a.group(b+"-bands",this.layerAboveDataset);this.belowBandGroup=this.belowBandGroup||a.group(b+"-bands",this.layerBelowDataset);e.push(this.topBandGroup);h&&e[h].insertAfter(e[h-1]);i.push(this.belowBandGroup);j&&i[j].insertAfter(i[j-1]);this.topLineGroup=this.topLineGroup||a.group(b+"-lines",this.layerAboveDataset);this.belowLineGroup=this.belowLineGroup||a.group(b+"-lines",this.layerBelowDataset);this.topLabelGroup=this.topLabelGroup||a.group(b+"-labels",this.layerAboveDataset);this.belowLabelGroup=
this.belowLabelGroup||a.group(b+"-labels",this.layerBelowDataset);k.push(this.topLineGroup);l&&k[l].insertAfter(k[l-1]);m.push(this.belowLineGroup);p&&m[p].insertAfter(m[p-1]);f.push(this.topLabelGroup);q&&f[q].insertAfter(f[q-1]);g.push(this.belowLabelGroup);r&&g[r].insertAfter(g[r-1]);this.isReverse=d;this.configure()};La.prototype={configure:function(){var a=this.axisData,b=this.renderer,c=this.isVertical,d=this.isReverse,e=b.options,f=e.chart,g=f.marginBottom,f=f.marginRight,h=b.canvasTop,i=b.canvasLeft,
j=this.min=a.min,j=this.span=(this.max=a.max)-j,i=this.startX=x(a.startX,i),h=this.startY=x(a.startY,h),k=this.endX=x(a.endX,b.canvasRight),a=this.endY=x(a.endY,b.canvasBottom);this.startPixel=d?c?a:k:c?h:i;c=this.pixelRatio=c?(a-h)/j:(k-i)/j;this.pixelValueRatio=d?-c:c;d=this.relatedObj={};d.marginObj={top:h,right:f,bottom:g,left:i};d.canvasObj={x:i,y:h,w:k-i,h:a-h,toX:k,toY:a};this.primaryOffset=this.secondaryOffset=0;this.cache={lowestVal:0,highestVal:0,indexArr:[],hashTable:{}};this.elements=
this.elements||{};if(this.belowBandGroup)b.elements.axes=b.elements.axes||{},b.elements.axes.belowBandGroup=this.belowBandGroup,e&&e.chart&&e.chart.hasScroll&&this.belowBandGroup.attr({"clip-rect":b.elements["clip-canvas"]});this.poi={}},draw:function(){var a=this.axisData,b=a&&a.plotLines||[],c=a&&a.plotBands||[],d=a&&a.tickLength,e=a&&a.tickWidth;a&&a.title&&this.drawAxisName();b&&b.length>0&&this.drawPlotLine();c&&c.length>0&&this.drawPlotBands();!isNaN(d)&&d!=0&&!isNaN(e)&&e!=0&&this.drawTicks()},
scroll:function(){},setOffset:function(a,b){var c=h?this.startY:this.startX,d=h?this.endY:this.endX,e=this.cache.hashTable,f=this.primaryOffset=a||this.primaryOffset,g=this.secondaryOffset=b||this.secondaryOffset,h=this.isVertical,i,j,k,l=[this.topLabelGroup,this.belowLabelGroup,this.topLineGroup,this.belowLineGroup,this.topBandGroup,this.belowBandGroup],m,p,q;m=0;for(p=l.length;m<p;m+=1)if(k=l[m])i=h?g:f,j=h?f:g,k.attr({transform:"t"+i+","+j});if(!h)for(q in e)if(m=parseFloat(q)+f,m<c||m>d){g=e[q];
m=0;for(p=g.elements.length;m<p;m+=1)h=g.elements[m],h.attr("visibility")==="visible"&&h.attr({visibility:"hidden"})}else if(m>c&&m<d){g=e[q];m=0;for(p=g.elements.length;m<p;m+=1)h=g.elements[m],h.attr("visibility")==="hidden"&&h.attr({visibility:"visible"})}},update:function(){},drawTicks:function(){var a=this.axisData,b=this.renderer.paper,c=this.min,d=this.max,e=this.isVertical,f=this.layerBelowDataset,f=this.tickGroup=this.tickGroup||b.group("axis-ticks",f),g=this.relatedObj.canvasObj,h=a.offset,
i=a.opposite,j=a.showAxis,k=a.tickInterval,l=a.tickLength,m=a.tickWidth,a=a.tickColor,p=c;if(e&&j){c=this.getAxisPosition(c);e=this.getAxisPosition(d);g=!i?g.x-h:g.toX+h;for(b.path(["M",g,c,"L",g,e],f).attr({stroke:a,"stroke-width":m});ja(p)<=d;)h=this.getAxisPosition(p),c=!i?g-l:g+l,b.path(["M",g,h,"L",c,h],f).attr({stroke:a,"stroke-width":m}),p+=k}},getAxisPosition:function(a,b){var c;b?c=(a-this.startPixel)/this.pixelValueRatio+this.min:(a=this.axisData.reversed?this.min+(this.max-a):a,c=this.startPixel+
(a-this.min)*this.pixelValueRatio);return c},drawPlotLine:function(){for(var b=this.renderer,d=b.paper,e=this.isVertical,f=+!e,g=this.belowLineGroup,h=this.topLineGroup,i=this.belowLabelGroup,j=this.topLabelGroup,l=this.axisData.plotLines||[],m=this.lines=this.lines||[],p=this.labels=this.labels||[],q=this.relatedObj.canvasObj,t=this.globalOptions||{},u=this.elements||{},v=this.cache||{},w=v.hashTable,G=v.indexArr,y=e?this.startY:this.startX,B=e?this.endY:this.endX,D=this.primaryOffset,H=parseFloat(b.canvasBorderWidth)||
0,A,J=(b.tooltip||{}).enabled!==!1,o,E,L,M,K,W,s,O,P,V,R,S,da,aa,la,Z,U=0,X=0,ma,ba,ia,Ha,qa,wa,Ra,ja,fa=t.chart.xDepth||0,Fa,Ba,sa,ya,xa,pa,Ja,Na,Ia,Ka,Da,Ua=Aa(l.length,Aa(m.length,p.length)),Pa,Ca,La,Sa,v=[],Va,t=0;t<Ua;t+=1){E=L=M=null;Ha=W="visible";E=m[t];L=p[t];Ia=(s=l[t])&&s.width;R=(A=s&&s.label)&&A.style;if(!E&&s){if(Ba=s.zIndex>3?h:g,Ia>0.1)E=m[t]=d.path(Ba).css(s.style),u.lines=u.lines||[],u.lines.push(E)}else if(!s&&(E||L))E&&E.remove(),L&&L.remove(),m&&(m[t]=null),p&&(p[t]=null),u&&
u.lines&&(u.lines[t]=null),u&&u.labels&&(u.labels[t]=null);if(s){if(!L&&A&&!s.stepped){if(A.text!=k&&A.text!=" "){L=s.zIndex>=3?j:i;L=p[t]=d.text(L).css(R);if(E)E.label=L;u.labels=u.labels||[];u.labels.push(L)}}else if(L)if(A)if(A.text===k||A.text===" ")L.isRotationSet=!1,L.remove(),delete L,p&&(p[t]=null),u&&u.labels&&(u.labels[t]=null);else{if(s&&s.stepped)L.isRotationSet=!1,L.remove(),delete L,p&&(p[t]=null),u&&u.labels&&(u.labels[t]=null)}else L.isRotationSet=!1,L.remove(),delete L,p&&(p[t]=null),
u&&u.labels&&(u.labels[t]=null);if(!E&&!L)E=L=null;else if(s.value!==null){if(s)ya=s.isVline,xa=s.isTrend,pa=s.isGrid,o=s.tooltext,Ja=s.value,Na=s.color,Ka=s.dashStyle,Da=xa?s.to:null,O=s._isStackSum;if(A)P=A.text,V=R&&R.color,aa=A.offsetScaleIndex||0,la=A.offsetScale,S=R&&R.fontSize,da=R&&R.lineHeight,Z=A.rotation,U=A.x||0,X=A.y||0,ma=A.align,ba=A.verticalAlign,ia=A.textAlign;S&&(Ca=S,Ca.indexOf("px")!==-1&&(Ca=Ca.replace("px",""),Ca=parseFloat(Ca)));da&&(La=da,La.indexOf("px")!==-1&&(La=La.replace("px",
""),La=parseFloat(La)));e?(R=this.getAxisPosition(Ja),K=xa?this.getAxisPosition(Da)||R:R,sa=R!==K?!0:!1,Ba=["M",q.x,R,"L",q.toX,K],ya?b.logic.isBar&&(Ra=b.yAxis[aa],!isNaN(la)&&la>=0&&la<=1&&(la=Ra.min+(Ra.max-Ra.min)*la),wa=Ra.getAxisPosition(la||Ja)+U):wa=A?qa=this.axisData.isOpposite||ma==="right"?q.toX+U:q.x+U:qa=this.axisData.isOpposite?q.toX:q.x):(qa=xa?this.getAxisPosition(Ja):this.getAxisPosition(Ja)||0,wa=xa?this.getAxisPosition(Da)||qa:qa,!xa&&!ya&&fa>0&&(qa+=fa,wa+=fa),sa=qa!==wa?!0:!1,
Ba=["M"+qa,q.y,"L",wa,q.toY],W=qa+D<y||qa+D>B?"hidden":W,ya?(Ra=b.yAxis[aa],!isNaN(la)&&la>=0&&la<=1&&(la=Ra.min+(Ra.max-Ra.min)*(1-la)),R=Ra.getAxisPosition(la||Ja)+X,R-=H+parseFloat(Fa)):this.axisData.opposite||ba==="top"&&!pa?(R=q.y+X,Pa="bottom"):R=q.toY+X,K=R);if(L){if(A&&A.backgroundColor)A.labelBgClr=c({color:A.backgroundColor,alpha:A.backgroundOpacity*100});if(A&&A.borderColor)A.labelBorderClr=c({color:A.borderColor,alpha:"100"});ja=xa?ma==="left"?R:K:K;Ra=wa-+!ya*f*fa;Ra=wa-+!ya*f*fa+f*(U||
0);Fa=(Fa=A&&A.borderWidth)?Fa.indexOf("px")!==-1?Fa.replace("px",""):1:1;Sa=Ca?Ca*0.2:2;Ha=!e?wa+D<y||wa+D>B?"hidden":Ha:Ha;K=ia==="left"?"start":ia==="right"?"end":"middle";O?(Pa="bottom",ja+=Ca*0.4,v.push(L)):f&&this.axisData.opposite?(Pa=ab,K=Z?"start":"middle"):Pa=ba;/\n|<br\s*?\/?>/ig.test(P)&&!Z&&pa&&(Pa=f&&this.axisData.opposite&&!Z?"middle":cb,ja-=La);L.attr({transform:" "});L.attr({text:P,fill:V||Na,"text-bound":A&&[A.labelBgClr,A.labelBorderClr,Fa,Sa],title:A&&(A.originalText||""),x:Ra,
y:ja,"text-anchor":K,"vertical-align":Pa,visibility:Ha});Z&&L.rotate(Z,Ra,ja);Ha=e?ja.toString():wa.toString();(A=w[Ha])?A.elements.push(L):(A={counter:t,keyProp:Ha,elements:[L]},w[Ha]=A,G.push(A))}E&&(E.attr({path:$(Ba,Ia),stroke:Na,"stroke-width":Ia,"shape-rendering":!sa&&Ia>=1?r:void 0,"stroke-dasharray":Ka?Ka:void 0,visibility:W}),J&&o&&Ia<a&&W&&(M=d.path(Ba).attr({stroke:ha,"stroke-width":a,ishot:!0})),M=M||E,J&&M.tooltip(o),Ha=e?R.toString():qa.toString(),(A=w[Ha])?A.elements.push(E):(A={counter:t,
keyProp:Ha,elements:[E]},w[Ha]=A,G.push(A)));if(s&&s.isMinLabel)this.poi.min={label:L,index:t,line:E};else if(s&&s.isMaxLabel)this.poi.max={label:L,index:t,line:E};else if(s&&s.isZeroPlane)this.poi.zero={label:L,index:t,line:E};E=L=null}}}d=v.length;Va=x(b.options.plotOptions.series.animation.duration,0);if(d>0)for(t=0;t<d;t+=1)(b=v[t])&&function(a){a.hide();setTimeout(function(){a.show()},Va)}(b)},drawPlotBands:function(){var a=this.renderer,b=a.paper,d=this.isVertical,e=a.options.chart.hasScroll,
f=this.belowBandGroup,g=this.topBandGroup,h=this.belowLabelGroup,i=this.topLabelGroup,j=this.axisData.plotBands||[],k=this.bands=this.bands||[],l=this.bandLabels=this.bandLabels||[],m=this.relatedObj.canvasObj,p=this.elements||{},q=this.cache||{},r=q.hashTable,q=q.indexArr,t=d?this.startY:this.startX,u=d?this.endY:this.endX,v=this.primaryOffset,a=(a.tooltip||{}).enabled!==!1,w,y,B,A,J,o,D,H,E,L,M,s,K,O,R,P,V,da,S,la,aa,Z,U,$,X,ha,ba,qa,ja,ia,fa,ya,Fa,Ba,sa=Aa(j.length,k.length);for(Ba=0;Ba<sa;Ba+=
1){y=A="visible";B=k[Ba];J=l[Ba];K=(s=(o=j[Ba])&&o.label)&&s.style;if(!B&&o){if(B=o.zIndex>3?g:f,ya=o.zIndex>3?i:h,B=k[Ba]=b.rect(B),p.bands=p.bands||[],p.bands[Ba]=B,s&&s.text)J=l[Ba]=B.label=b.text(ya).css(K),p.labels=p.labels||[],p.labels[Ba]=J}else if(!o&&B){p.labels&&(l[Ba]=p.labels[Ba]=null);B.label&&B.label.remove();k[Ba]=p.bands[Ba]=null;B.remove();delete B;continue}if(o)w=o.tooltext,D=o.to,H=o.from,E=o.value,L=o.width,M=o.color;if(s)da=K&&K.fontSize,S=K&&K.lineHeight,O=s.borderWidth,R=s.align,
P=s.x,V=s.y,Z=s.text,U=s.originalText,$=K&&K.color,X=s.backgroundColor,ha=s.backgroundOpacity,ba=s.borderColor,la=s.textAlign,aa=s.verticalAlign,qa=s.borderType;da&&(o=da,o.indexOf("px")!==-1&&(o=o.replace("px",""),parseFloat(o)));S&&(o=S,o.indexOf("px")!==-1&&(o=o.replace("px",""),parseFloat(o)));Fa=this.getAxisPosition(x(D,E));fa=this.getAxisPosition(x(H,E));K=d?m.x:fa;o=d?Fa:m.y;ya=d?m.w:(!this.axisData.reversed?Fa-fa:fa-Fa)||L||1;Fa=d?fa-Fa||1:m.h;fa=K+ya;ya=Ja(ya);Fa<0&&(Fa=Ja(Fa),o-=Fa);A=e?
!0:!d?K+v>u||fa+v<t?"hidden":A:A;B&&(B.attr({x:K,y:o,width:ya,height:Fa,fill:c(M),"stroke-width":0,visibility:A}),a&&w&&B.tooltip(w));if(J&&s){(A=O)&&A.indexOf("px")!==-1&&A.replace("px","");A=d?R==="right"?m.toX+P:m.x+P:K+ya/2;B=d?o+Fa/2:m.toY+V;y=!d?A+v<t||A+v>u?"hidden":y:y;if(X)ja=s.labelBgClr=c({color:X,alpha:ha*100});if(ba)ia=s.labelBorderClr=c({color:ba,alpha:"100"});la=la==="left"?"start":la==="right"?"end":"center";J.attr({text:Z,title:U||"",fill:$,"text-bound":[ja,ia,O,da*0.2,qa==="solid"?
!1:!0],x:A,y:B,"text-anchor":la,"vertical-align":aa,visibility:y});s=d?B.toString():A.toString();(y=r[s])?y.elements.push(J):(y={counter:Ba,keyProp:s,elements:[J]},r[s]=y,q.push(y))}}},drawAxisName:function(){var n;var a=this.axisData,b=a.title||{},d=b&&b.style,e=b.align,f=b.centerYAxisName||!1,g=this.renderer.paper,h=this.isVertical,i=this.relatedObj.canvasObj,j=x(a.offset,0)+x(b.margin,0),k=b.text||"",l=this.name||void 0,a=a.opposite,m=this.layerBelowDataset,m=m.nameGroup=m.nameGroup||g.group("axis-name",
m),p=x(b.rotation,!a?270:90),q=h?a?i.toX+j:i.x-j:(i.x+i.toX)/2,r,t,u,v,w;if(d)t=d.color,u=c({color:d.backgroundColor,alpha:100}),v=c({color:d.borderColor,alpha:100}),(n=(d=d.border)&&d.split(" "),d=n)&&d.length>0&&(w=d[0].indexOf("px")!=-1?parseFloat(d[0].replace("px","")):parseFloat(d[0]));f=h?e==="low"?i.toY:f?(i.y+i.toY)/2:this.renderer.chartHeight/2:i.toY+j;!l&&k?l=this.name=g.text(m).css(b.style):!k&&l&&l.remove();if(!isNaN(p)&&p&&h)r=b.style.fontSize,r=r.indexOf("px")!=-1?r.replace("px",""):
r,q=a?q+parseFloat(r):q-parseFloat(r);l&&l.attr({text:k,title:b.originalText||"",fill:t||"#000000","text-bound":[u,v,w,r*0.1],"text-anchor":e==="low"?!a?"start":"end":"middle","vertical-align":h?!p?"middle":"top":a?ab:"top",transform:h?"t"+q+","+f+"r"+p:"t"+q+","+f});this.elements.name=l},realtimeUpdateX:function(a){if(a>0){for(var b=this.axisData.plotBands,c=this.min+a,d,e=b.length;e--;)if((d=b[e])&&!d.isNumVDIV)d.value<c||d.from<c||d.to<c?b.splice(e,1):(d.value!==void 0&&(d.value-=a),d.from!==void 0&&
(d.from-=a),d.to!==void 0&&(d.to-=a));this.drawPlotLine();this.drawPlotBands()}},realtimeUpdateY:function(a,b){var c=this.axisData,d=this.min=c.min=a,c=this.span=(this.max=c.max=b)-d,c=this.pixelRatio=this.isVertical?this.relatedObj.canvasObj.h/c:this.relatedObj.canvasObj.w/c;this.pixelValueRatio=this.isReverse?-c:c;this.drawPlotLine();this.drawPlotBands()}};La.prototype.constructor=La;var Ka=function(a,b,c,d){return xa(b-c[1]-d.top,a-c[0]-d.left)};q("renderer.cartesian",{drawCanvas:function(){var n;
var a=this.options.chart||{},b=a.plotBackgroundColor,d=this.paper,f=this.elements,g=f.canvas,h=f.canvas3DBase,h=f.canvasBorder,i=f.canvasBg,j=this.canvasTop,k=this.canvasLeft,l=this.canvasWidth,m=this.canvasHeight,p=x(a.plotBorderRadius,0),i=a.plotBorderWidth,q=i*0.5,r=a.plotBorderColor,t=a.isBar,u=a.is3D,v=a.showCanvasBg,w=a.canvasBgDepth,y=a.showCanvasBase,B=a.canvasBaseColor3D,D=a.canvasBaseDepth,A=a.plotShadow,J=e&&i===0&&A&&A.enabled,o=a.xDepth||0,a=a.yDepth||0,E=this.layers,H=E.background,L=
E.dataset;E.tracker=E.tracker||d.group("hot").insertAfter(L);E.datalabels=E.datalabels||d.group("datalabels").insertAfter(L);n=E.canvas=E.canvas||d.group("canvas").insertAfter(H),E=n;if(!h)f.canvasBorder=d.rect(k-q,j-q,l+i,m+i,p,E).attr({"stroke-width":i,stroke:r,"stroke-linejoin":i>2?"round":"miter"}).shadow(A);f["clip-canvas"]=[Aa(0,k-o),Aa(0,j-a),Aa(1,l+o*2),Aa(1,m+a*2)];f["clip-canvas-init"]=[Aa(0,k-o),Aa(0,j-a),1,Aa(1,m+a*2)];if(u){if(v)i=t?f.canvasBg=d.path(["M",k,",",j,"L",k+w*1.2,",",j-w,
",",k+l-w,",",j-w,",",k+l,",",j,"Z"],E):f.canvasBg=d.path(["M",k+l,",",j,"L",k+l+w,",",j+w*1.2,",",k+l+w,",",j+m-w,",",k+l,",",j+m,"Z"],E),i.attr({"stroke-width":0,stroke:"none",fill:c(b)});if(y)h=t?f.canvas3DBase=d.cubepath(k-o-D,j+a,D,m,o,a,E):f.canvas3DBase=d.cubepath(k-o,j+m+a,l,D,o,a,E),h.attr({stroke:"none","stroke-width":0,fill:B.replace(S,U)})}if(!g&&b)f.canvas=d.rect(k,j,l,m,p,E).attr({"stroke-width":0,stroke:"none",fill:c(b)}).shadow(J)},drawAxes:function(){var a=this.logic,b=this.options,
c=this.paper,d=this.layers,e=d.dataset,f=d.layerBelowDataset=d.layerBelowDataset||c.group("axisbottom"),g=d.layerAboveDataset=d.layerAboveDataset||c.group("axistop"),c=this.xAxis=[],d=this.yAxis=[];f.insertBefore(e);g.insertAfter(e);if(b.xAxis&&b.xAxis.length){e=0;for(f=b.xAxis.length;e<f;e+=1)c[e]=this.xAxis[e]=new La(b.xAxis[e],this,a.isBar)}else c[0]=this.xAxis[0]=new La(b.xAxis,this,a.isBar);if(b.yAxis){e=0;for(f=b.yAxis.length;e<f;e+=1)d[e]=this.yAxis[e]=new La(b.yAxis[e],this,!a.isBar,!a.isBar)}e=
0;for(f=d.length;e<f;e+=1)d[e].draw();e=0;for(f=c.length;e<f;e+=1)c[e].draw()},drawScroller:function(){var a=this,b=a.options,c=a.paper,d=a.layers,e=a.xAxis["0"]||{},f=(e.axisData||{}).scroll||{},g=a.canvasTop,h=a.canvasLeft,i=a.canvasWidth,j=a.canvasHeight,k=ya(a.canvasBorderWidth,2),l,m,p,q,r,t,u,v,w,y,A,E,o,H,L,K=d.dataset,M=d.datalabels,W=d.tracker;q=d.layerAboveDataset;var s;if(f.enabled)s=d.scroll=d.scroll||c.group("scroll").insertAfter(q),q=f.scrollRatio,b=x(b[Z].xAxisScrollPos,f.startPercent),
r=f.viewPortMax,t=f.viewPortMin,m=f.vxLength,u=Va(m),v=f.buttonWidth,w=f.height,y=f.padding,A=f.color,E=f.flatScrollBars,m=f.windowedCanvasWidth=e.getAxisPosition(m),l=f.fullCanvasWidth=e.getAxisPosition(r-t)-m,p=D(b*l),o=a.fusionCharts.jsVars._reflowData,H={hcJSON:{_FCconf:{xAxisScrollPos:0}}},L=H.hcJSON._FCconf,d.scroller=c.scroller(h-k,g+j+y,i+k*2,w,!0,{showButtons:!0,displayStyleFlat:E,buttonWidth:v,scrollRatio:q,scrollPosition:b},s).data("fullCanvasWidth",l).data("windowedCanvasWidth",m).attr({"scroll-display-style":E,
fill:A}).scroll(function(b){p=-D(b*l);K&&K.transform(["T",p,0]);M&&M.transform(["T",p,0]);W&&W.transform(["T",p,0]);e.setOffset&&e.setOffset(p);scrollStateObj={position:b,direction:b-f.lastPos||0,vxLength:u};L.xAxisScrollPos=f.lastPos=b;B(o,H,!0);if(scrollStateObj.direction!==0)for(b=0;b<a.datasets.length;b++)/column/i.test(a.datasets[b].drawPlot)&&a[a.datasets[b].drawPlot+"Scroll"]&&a[a.datasets[b].drawPlot+"Scroll"].call(a,a.plots[b],a.datasets[b],scrollStateObj)});return f.enabled},finalizeScrollPlots:function(){var a=
this,b=a.container,c=a.elements,d=a.layers,e=d.scroller,f=d.dataset,g=d.datalabels,d=d.tracker,h,i={},k,m=a.xAxis["0"]||{},p=(m.axisData||{}).scroll||{},q=x(a.options[Z].xAxisScrollPos,p.startPercent),r=p.fullCanvasWidth;p.enabled&&(f.attr({"clip-rect":c["clip-canvas"]}),g.attr({"clip-rect":c["clip-canvas"]}),d.attr({"clip-rect":c["clip-canvas"]}),c=function(b){var c=a.elements.canvas,d=h.left,f=h.top,g=b.type,m=j&&l.getTouchEvent(b)||E,d=b.layerX||m.layerX||(b.pageX||m.pageX)-d,b=b.layerY||m.layerY||
(b.pageY||m.pageY)-f;switch(g){case "dragstart":k=c.isPointInside(d,b);i.ox=k&&d||null;if(!k)return!1;break;case "dragend":k=!1;i={};break;default:if(!k)break;c=d-i.ox;i.ox=d;i.scrollPosition=e.attrs["scroll-position"]-c/r;e.attr({"scroll-position":i.scrollPosition})}},j&&(h=l.getPosition(b),b&&(P(b,"dragstart drag dragend",c),ia(b,"dragstart drag dragend",c))),q>0&&(b=-D(q*r),f&&f.transform(["T",b,0]),g&&g.transform(["T",b,0]),d&&d.transform(["T",b,0]),m.setOffset&&m.setOffset(b)))},drawPlotColumn:function(b,
d,e){var f=this,h=b.data,i=h.length,j=b.items,k=b.graphics||(b.graphics=[]),l=f.paper,m=f.logic,p=f.layers,q=f.options,r=f.elements,t=q.chart,u=(q.tooltip||{}).enabled!==!1,v=f.definition.chart,y=q.plotOptions.series,B=f.xAxis[d.xAxis||0],E=f.yAxis[d.yAxis||0],T=E.axisData.reversed,K=m.isLog,A=m.is3D,J=m.isStacked,o=m.isWaterfall,O=m.isCandleStick,R=M(B.axisData.scroll,{}),P=e||{},V=R.enabled,q=x(P.position,q[Z].xAxisScrollPos,R.startPercent),W=P.vxLength||Va(R.vxLength),s=P.scrollStart||Aa(0,D((i-
W)*q)-1)||0,P=P.scrollEnd||ya(i,s+W+2)||i,R=t.canvasBorderOpacity=w.color(t.plotBorderColor).opacity,q=f.canvasBorderWidth,R=t.isCanvasBorder=R!==0&&q>0,S;g(m.name);var m=e!==Ua?0:isNaN(+y.animation)&&y.animation.duration||y.animation*1E3,aa=d.numColumns||1,U=d.columnPosition||0,q=t.use3DLighting,$=d.visible===!1?"hidden":"visible",X=B.getAxisPosition(0),X=B.getAxisPosition(1)-X,da=y.groupPadding,ba=y.maxColWidth,da=(1-(v&&v.plotspacepercent)*0.01)*X||ya(X*(1-da*2),ba*aa),v=da/aa,U=U*v-da/2,la=E.max,
Ga=E.min,aa=la>0&&Ga>=0,da=la<=0&&Ga<0,ba=la>0&&Ga<0,ja=da||T&&aa?la:K||aa?Ga:0;S=E.yBasePos=E.getAxisPosition(ja);var ia=x(t.useRoundEdges,0),ma=y.dataLabels.style,fa=p.dataset=p.dataset||l.group("dataset-orphan"),sa=p.datalabels=p.datalabels||l.group("datalabels").insertAfter(fa),p=p.tracker,Ha=f.canvasTop,qa=f.canvasLeft,wa=f.canvasWidth,Ra=f.canvasBottom,xa=f.canvasRight,pa,Fa,Ba;parseInt(ma.lineHeight,10);var Ia,Ca,Ka,Da,La,Pa,Sa;!e&&sa.hide();V&&s>P-W-2&&(s=P-W-2);if(J)Sa=fa.shadows||(fa.shadows=
l.group("shadows",fa).toBack());ma=fa.column||(fa.column=l.group("columns",fa));!O&&!A&&!V&&(ma.attrs["clip-rect"]||ma.attr({"clip-rect":r["clip-canvas"]}));o&&ma.toBack();if(A){Fa=t.xDepth||0;Ba=t.yDepth||0;e=ma.negative=ma.negative||l.group("negative-values",ma);W=ma.column=ma.column||l.group("positive-values",ma);La=ma.zeroPlane;if(!La&&Ga<0&&la>=0)La=ma.zeroPlane=l.group("zero-plane",ma).insertBefore(W),pa=t.zeroPlaneColor,r.zeroplane=l.cubepath(qa-Fa,S+Ba,wa,1,Fa,Ba,La).attr({fill:[pa,!q],stroke:"none",
"stroke-width":1});if(!(La=e.data("categoryplots")))e.data("categoryplots",Array(i)),La=e.data("categoryplots");if(!(pa=W.data("categoryplots")))W.data("categoryplots",Array(i)),pa=W.data("categoryplots");for(r=0;r<i;r+=1)La[r]=La[r]||l.group(e),pa[r]=pa[r]||l.group(W)}else Pa=ma;for(r=s;r<P;r+=1){t=h[r];s=t.y;i=t.toolText;e=W=null;if(s===null){if(fa=j[r])e=fa.graphic,A||e.attr({height:0})}else{Ia=!1;Ga=x(t.x,r);Ca=t.link;la=H(t.borderWidth)||0;Da=t._FCW*X;Ga=B.getAxisPosition(t._FCX)||B.getAxisPosition(Ga)+
U;fa=t.previousY;Ka=E.getAxisPosition(fa||ja);wa=E.getAxisPosition(s+(fa||0));ma=Ja(wa-Ka);Da=Da||v;if(A){s<0&&(wa=Ka,Ia=!0);Pa=s<0?La:pa;if(!(fa=j[r]))fa=j[r]={index:r,value:s,graphic:l.cubepath(Pa[r]),dataLabel:null,tracker:null,hot:null};e=fa.graphic;e.attr({cubepath:[Ga-Fa,S+Ba,Da,0,Fa,Ba],fill:[c(t.color),!q],stroke:la&&c(t.borderColor)||"NONE","stroke-width":la,visibility:$}).shadow(y.shadow&&t.shadow,Sa).animate({cubepath:[Ga-Fa,wa+Ba,Da,ma,Fa,Ba]},m,"normal",function(){sa.show()}).data("BBox",
{height:ma,width:Da,x:Ga,y:wa});if(Ca||u){!J&&ma<a&&(wa-=(a-ma)/2,ma=a);if(!fa.tracker)fa.tracker=l.cubepath(p);W=fa.tracker;W.attr({cubepath:[Ga-Fa,wa+Ba,Da,ma,Fa,Ba],cursor:Ca?"pointer":"",stroke:la&&ha||"NONE","stroke-width":la,fill:ha,ishot:!!Ca,visibility:$}).click(function(){var a=this.data("link");a&&f.linkClickFN.call({link:a},f)}).tooltip(i).data("link",Ca);W._.cubetop.click(function(){var a=this.data("link");a&&f.linkClickFN.call({link:a},f)}).tooltip(i).data("link",Ca);W._.cubeside.click(function(){var a=
this.data("link");a&&f.linkClickFN.call({link:a},f)}).tooltip(i).data("link",Ca)}J&&Ia&&(e.toBack(),W&&W.toBack())}else{Ia=!1;if(!K&&!T&&s<0||!K&&T&&s>0)wa=Ka,Ia=!0;T&&!ba&&s>0&&(wa=Ka-ma,Ia=!1);o&&s<0&&Na(fa)&&(wa-=ma,Ia=!0);!O&&!V&&(L(wa)<=Ha&&(ma-=Ha-wa-+R,wa=Ha-+R),D(wa+ma)>=Ra&&(ma-=D(wa+ma)-Ra+ +!!la+ +R),la<=1&&(L(Ga)<=qa&&(Da+=Ga,Ga=qa-la/2+ +!!la-+R,Da-=Ga-la/2+ +!!la),D(Ga+Da)>=xa&&(Ga-=la/2+ +!!la,Da=xa-Ga+la/2-!!la+ +R)));Ka=w.crispBound(Ga,wa,Da,ma,la);Ga=Ka.x;wa=Ka.y;Da=Ka.width;ma=
Ka.height;if(!O&&R&&(!Na(fa)||o&&fa===s&&s===t._FCY))if(da&&!T)S=wa-(Ha-la/2),ma+=S,S=wa-=S;else if(K||aa||T&&da)ma=Ra-wa+la/2,S=wa+ma;o&&fa&&la>0&&y.connectorOpacity!==0&&y.connectorWidth===1&&y.connectorDashStyle&&(ma-=1,s<0&&(wa+=1));ma<=1&&(ma=1,wa+=s<0?0:-ma);d._columnWidth=Da;if(!(fa=j[r]))if(fa=j[r]={index:r,value:s,width:Da,graphic:l.rect(Pa),valueBelowPlot:Ia,dataLabel:null,tracker:null},e=fa.graphic,e.attr({x:Ga,y:S,width:Da,height:0,r:ia,fill:c(t.color),stroke:c(t.borderColor),"stroke-width":la,
"stroke-dasharray":t.dashStyle,"stroke-linejoin":"miter",visibility:$}).shadow(y.shadow&&t.shadow,Sa).animate({y:wa,height:ma||1},m,"normal",function(){sa.show()}).data("BBox",Ka),Ca||u){if(!fa.tracker)fa.tracker=l.rect(p);!J&&ma<a&&(wa-=(a-ma)/2,ma=a);W=fa.tracker;W.attr({x:Ga,y:wa,width:Da,height:ma,r:ia,cursor:Ca?"pointer":"",stroke:ha,"stroke-width":la,fill:ha,ishot:!!Ca,visibility:$}).click(function(){var a=this.data("link");a&&f.linkClickFN.call({link:a},f)}).tooltip(i).data("link",Ca)}}Ca=
f.drawPlotColumnLabel(b,d,r,Ga,wa)}Ca&&k.push(Ca);e&&k.push(e);W&&k.push(W);f.drawTracker&&f.drawTracker.call(f,b,d,r)}b.visible=d.visible!==!1;return b},drawPlotColumnScroll:function(a,b,c){var d=a.data.length,e=a.items,f;f=c.vxLength;var g=Aa(0,D((d-f)*c.position)-1)||0,d=ya(d,g+f+2)||d;g>d-f-2&&(g=d-f-2);c.scrollEnd=d;for(f=g;f<d;f++)if(!e[f]){c.scrollStart=f;this.drawPlotColumn(a,b,c);break}},drawPlotColumnLabel:function(a,b,c,d,e,f){var n;var d=this.options,g=this.logic,h=d.chart,i=this.paper,
j=this.layers,d=d.plotOptions.series.dataLabels.style,l=h.rotateValues===1?270:0,m=this.canvasHeight,p=this.canvasTop,q=a.data[c],r=a.items[c],t=h.valuePadding+2,u=r.graphic,a=r.dataLabel,c=M(r.valueBelowPlot,q.y<0),v=g.isStacked,g=g.is3D,x=h.xDepth||0,w=h.yDepth||0,y=q.displayValue,b=b.visible===!1?"hidden":"visible",A=h.placeValuesInside,h=!1,f=f||j.datalabels;Na(y)&&y!==k&&q.y!==null?(a?l&&a.rotate(360-l):(a=r.dataLabel=i.text().attr({text:y}).css(d),h=!0),j=a.getBBox(),u=u.data("BBox"),i=u.height,
n=r=l?j.width:j.height,j=n,j+=t,t=r*0.5+t,u=u.x+u.width*0.5,m=c?p+m-(e+i):e-p,v?(e=e+i*0.5+(w||0),u-=x):A?i>=j?(e+=c?i-t:t,q._valueBelowPoint=1,g&&(u-=x,e+=w)):m>=j?(e+=c?i+t:-t,g&&c&&(u-=x,e+=w)):(e+=c?i-t:t,q._valueBelowPoint=1,g&&(u-=x,e+=w)):m>=j?(e+=c?i+t:-t,g&&c&&(u-=x,e+=w)):(e+=c?i-t:t,q._valueBelowPoint=1,g&&(u-=x,e+=w)),a.attr({x:u,y:e,visibility:b}),l&&a.attr("transform","T0,0,R"+l),h&&f.appendChild(a),h&&M(d.backgroundColor,d.borderColor)!==k&&a.attr({"text-bound":[d.backgroundColor,d.borderColor,
1,2]})):a&&a.attr({text:k});return a},drawPlotFloatedcolumn:function(a,b){this.drawPlotColumn.call(this,a,b)},drawPlotColumn3d:function(a,b){this.drawPlotColumn.call(this,a,b)},drawPlotBar:function(b,d){var e=this,f=b.data,h=f.length,i=b.items,j=b.graphics=[],k=e.paper,l=e.logic,m=e.layers,p=e.options,q=e.elements,r=p.chart,t=(p.tooltip||{}).enabled!==!1,u,v=e.definition.chart,p=p.plotOptions.series,y=e.xAxis[d.xAxis||0],B=e.yAxis[d.yAxis||0],E=l.is3D,T=l.isStacked,K=r.canvasBorderOpacity=w.color(r.plotBorderColor).opacity,
A=e.canvasBorderWidth,K=r.isCanvasBorder=K!==0&&A>0;g(l.name);var l=isNaN(+p.animation)&&p.animation.duration||p.animation*1E3,J=d.numColumns||1,o=d.columnPosition||0,A=r.use3DLighting,M=d.visible===!1?"hidden":"visible",O=y.getAxisPosition(0),O=y.getAxisPosition(1)-O,R=p.groupPadding,P=p.maxColWidth,O=(1-(v&&v.plotspacepercent)*0.01)*O||ya(O*(1-R*2),P*J),v=J=O/J,o=o*J-O/2,W=B.max,s=B.min,J=W<0&&s<0?W:W>0&&s>0?s:0,O=B.getAxisPosition(J),R=x(r.useRoundEdges,0),S=e.canvasTop,P=e.canvasLeft,V=e.canvasHeight,
aa=e.canvasRight,U,Z,da,$,la,X,ba,fa,m=e.layers;la=m.dataset=m.dataset||k.group("dataset-orphan");var ma=m.datalabels=m.datalabels||k.group("datalabels").insertAfter(la),m=m.tracker,ja,ia,Ha,qa,wa;ma.hide();if(T)qa=la.shadows||(la.shadows=k.group("shadows",la).toBack());da=la.column=la.column||k.group("bars",la);if(E){U=r.xDepth||0;Z=r.yDepth||0;la=da.negative=da.negative||k.group("negative-values",da);X=da.column=da.column||k.group("positive-values",da);ia=da.zeroPlane;if(!ia&&s<0&&W>=0)ia=da.zeroPlane=
k.group("zero-plane",da).insertBefore(X),fa=r.zeroPlaneColor,q.zeroplane=k.cubepath(O-U,S+Z,1,V,U,Z,ia).attr({fill:[fa,!A],stroke:"none","stroke-width":0});if(!(ia=la.data("categoryplots")))la.data("categoryplots",Array(h)),ia=la.data("categoryplots");if(!(fa=X.data("categoryplots")))X.data("categoryplots",Array(h)),fa=X.data("categoryplots");for(q=0;q<h;q+=1)ia[q]=ia[q]||k.group(la),fa[q]=fa[q]||k.group(X)}else da.attrs["clip-rect"]||da.attr({"clip-rect":q["clip-canvas"]}),Ha=da;q=0;for(r=h-1;q<
h;q+=1,r-=1){S=f[q];V=S.y;ja=W=null;if(V===null){if($=i[q])ja=$.graphic,E||ja.attr({width:0})}else{X=x(S.x,q);s=S.link;u=S.toolText;la=H(S.borderWidth)||0;X=y.getAxisPosition(X)+o;da=S.previousY;$=B.getAxisPosition(da||J);ba=B.getAxisPosition(V+(da||0));da=Ja(ba-$);V>0&&(ba=$);if(E){Ha=V<0?ia:fa;if(!($=i[q]))$=i[q]={index:q,value:V,graphic:k.cubepath(Ha[r]),dataLabel:null,tracker:null};ja=$.graphic;ja.attr({cubepath:[O-U,X+Z,0,v,U,Z],fill:[c(S.color),!A],stroke:la&&c(S.borderColor)||"NONE","stroke-width":la,
"stroke-dasharray":S.dashStyle,cursor:s?"pointer":"",visibility:M}).shadow(p.shadow&&S.shadow,qa).animate({cubepath:[ba-U,X+Z,da,v,U,Z]},l,"normal",function(){ma.show()}).data("BBox",{height:v,width:da,x:ba,y:X});if(s||t){!T&&da<a&&(ba-=(a-da)/2,da=a);if(!$.tracker)$.tracker=k.cubepath(m);W=$.tracker;W.attr({cubepath:[ba-U,X+Z,da,v,U,Z],cursor:s?"pointer":"",stroke:la&&ha||"NONE","stroke-width":la,fill:ha,ishot:!!s}).click(function(){var a=this.data("link");a&&e.linkClickFN.call({link:a},e)}).tooltip(u).data("link",
s);W._.cubetop.click(function(){var a=this.data("link");a&&e.linkClickFN.call({link:a},e)}).tooltip(u).data("link",s);W._.cubeside.click(function(){var a=this.data("link");a&&e.linkClickFN.call({link:a},e)}).tooltip(u).data("link",s)}if(!T||T&&V<0)ja.toBack(),W&&W.toBack()}else{L(ba)<=P&&(da+=ba,ba=P-la/2+ +!!la-+K,da-=ba-la/2+ +!!la);D(ba+da)>=aa&&(ba-=la/2+ +!la,da=aa-ba+la/2-+!!la+ +K);wa=w.crispBound(ba,X,da,v,la);ba=wa.x;X=wa.y;da=wa.width;v=wa.height;da<=1&&(da=1,ba+=V<0?-da:0);if(!($=i[q]))$=
i[q]={index:q,value:V,height:v,graphic:k.rect(Ha),dataLabel:null,tracker:null};ja=$.graphic;ja.attr({x:O,y:X,width:0,height:v,r:R,fill:c(S.color),stroke:c(S.borderColor),"stroke-width":la,"stroke-dasharray":S.dashStyle,"stroke-linejoin":"miter",cursor:s?"pointer":"",visibility:M}).shadow(p.shadow&&S.shadow,qa).animate({x:ba,width:da||1},l,"normal",function(){ma.show()}).data("BBox",wa);if(s||t){!T&&da<a&&(ba-=(a-da)/2,da=a);if(!$.tracker)$.tracker=k.rect(m);W=$.tracker;W.attr({x:ba,y:X,width:da,height:v,
r:R,cursor:s?"pointer":"",stroke:ha,"stroke-width":la,fill:ha,ishot:!!s}).click(function(){var a=this.data("link");a&&e.linkClickFN.call({link:a},e)}).tooltip(u).data("link",s)}}u=e.drawPlotBarLabel(b,d,q,ba,X)}u&&j.push(u);ja&&j.push(ja);W&&j.push(W);e.drawTracker&&e.drawTracker.call(e,b,d,q)}b.visible=d.visible!==!1;return b},drawPlotBarLabel:function(a,b,c,d,e,f){var g=this.options,h=this.logic,i=g.chart,j=this.paper,l=this.layers,g=g.plotOptions.series.dataLabels.style,m=this.canvasLeft,p=this.canvasWidth,
q=a.data[c],r=a.items[c],t=i.valuePadding+2,u=r.graphic,a=r.dataLabel,c=q.y<0,v=h.isStacked,h=h.is3D,x=i.xDepth||0,w=i.yDepth||0,y=q.displayValue,b=b.visible===!1?"hidden":"visible",i=i.placeValuesInside,A=!1,f=f||l.datalabels;if(Na(y)&&y!==k&&q.y!==null){if(!a)a=r.dataLabel=j.text(),A=!0;a.attr({text:y,title:q.originalText||"",fill:g.color}).css(g);j=a.getBBox();l=u.data("BBox");u=l.height;q=l.width;l=r=j.width;l+=t;e+=u*0.5;u=d+(c?0:q);t=r*0.5+t;d=c?d-m:m+p-(d+q);v?(u+=(c?q:-q)*0.5,u-=h?x:0,e+=
h?w:0):(i?q>=l?(u+=c?t:-t,h&&(u-=x,e+=w)):(u+=c?-t:t,h&&c&&(u-=x)):d>=l?(u+=c?-t:t,h&&c&&(u-=x,e+=x)):(u+=c?t:-t,h&&(u-=x,e+=w)),u>m+p&&(u=m+p-j.width*0.5-4),u<m&&(u=m+j.width*0.5+4));a.attr({x:u,y:e,visibility:b});A&&f.appendChild(a);A&&M(g.backgroundColor,g.borderColor)!==k&&a.attr({"text-bound":[g.backgroundColor,g.borderColor,1,2]})}else a&&a.attr({text:k});return a},drawPlotBar3d:function(a,b){this.drawPlotBar.call(this,a,b)},drawPlotLine:function(b,d){var n;var e=this,h=e.paper,i=e.elements,
j=e.options,k=j.chart,l=e.logic,m=j.plotOptions.series,p=b.items,q=b.graphics=b.graphics||[],r,t=e.xAxis[d.xAxis||0],u=e.yAxis[d.yAxis||0],v=l.isWaterfall,y,B,E;y=0;var D=(j.tooltip||{}).enabled!==!1,L,j=isNaN(+m.animation)&&m.animation.duration||m.animation*1E3,K=k.xDepth||0,A=k.yDepth||0,J=k.series2D3Dshift,l=e.logic,o=d.step,M=d.drawVerticalJoins,O=d.useForwardSteps;g(l.name);var l=b.data,R=d.visible===!1?"hidden":"visible",P,W=l.length,s=t.getAxisPosition(0);r=t.getAxisPosition(1)-s;var s=r*W,
S=t.axisData.scroll||{},k=k.hasScroll||!1,V=m.connectNullData,U,aa,Z,da,$,X=null,ba=m.connectorWidth=H(d.lineWidth),fa=d.color;m.connectorOpacity=w.color(fa).opacity;var ja,ma,ia=m.connectorDashStyle=d.dashStyle,sa,Ha,qa,wa,pa=e.layers;P=pa.dataset=pa.dataset||h.group("dataset-orphan");var xa=pa.datalabels=pa.datalabels||h.group("datalabels").insertAfter(P),Aa=pa.tracker,pa=i["clip-canvas-init"].slice(0),i=i["clip-canvas"].slice(0);B=u.axisData.reversed;E=u.max;L=u.min;B=u.getAxisPosition(E>0&&L>
0?!B?L:E:E<0&&L<0?!B?E:L:!B?0:E)+(J?A:0);var Fa,Ba;u.yBasePos=B;if(v)y=(y=e.definition.chart)&&y.plotspacepercent,B=m.groupPadding,E=m.maxColWidth,y=(1-y*0.01)*r||ya(r*(1-B*2),E*1),y/=2;xa.hide();Fa=P.line=P.line||h.group("line-connector",P);Ba=P.anchors=P.anchors||h.group("line-anchors",P);Ba.hide();for(P=0;P<W;P+=1){B=l[P];da=B.y;aa=B.previousY||0;L=B.toolText;wa=U=Ha=E=null;r=p[P]={index:P,value:null,graphic:null,connector:null,dataLabel:null,tracker:null};if(da===null)V===0&&(X=null);else{Z=x(B.x,
P);U=B.link;d.relatedSeries==="boxandwhisker"&&d.pointStart&&(Z+=d.pointStart);da=u.getAxisPosition(da+aa)+(J?A:0);Z=t.getAxisPosition(Z)-K;Z=f(Z,ba,ba).position;da=f(da,ba,ba).position;if((sa=B.marker)&&sa.enabled)if(Ha=sa.symbol.split("_"),qa=Ha[0]==="spoke"?1:0,aa=sa.radius,n=r.graphic=h.polypath(Ha[1]||2,Z,da,aa,sa.startAngle,qa,Ba).attr({fill:c(sa.fillColor),"stroke-width":sa.lineWidth,stroke:c(sa.lineColor),cursor:U?"pointer":"",visibility:R}),Ha=n,U||D)aa<a&&(aa=a),E=r.tracker=h.circle(Z,da,
aa,Aa).attr({cursor:U?"pointer":"",stroke:ha,"stroke-width":sa.lineWidth,fill:ha,ishot:!!U,visibility:R}).click(function(){var a=this.data("link");a&&e.linkClickFN.call({link:a},e)}).tooltip(L).data("link",U);if(X!==null)X=["M",$,X],v&&X.push("m",-y,0),o?O?(X.push("H",Z),v&&X.push("h",y),M&&X.push("V",da)):(M&&X.push("V",da),X.push("M",$,da,"H",Z)):X.push("L",Z,da),wa=r.connector=h.path(X,Fa).attr({"stroke-dasharray":ma,"stroke-width":ba,stroke:c(ja||fa),"stroke-linecap":"round","stroke-linejoin":ba>
2?"round":"miter",visibility:R}).shadow(m.shadow&&B.shadow);U=r.dataLabel=e.drawPlotLineLabel(b,d,P,Z,da);$=Z;X=da;ja=B.color;ma=B.dashStyle||ia}U&&q.push(U);Ha&&q.push(Ha);wa&&q.push(wa);E&&q.push(E);e.drawTracker&&e.drawTracker.call(e,b,d,P)}if(k)h=S.startPercent,i[2]=s+pa[0],h===1&&(pa[0]=i[2],i[0]=0);h=w.animation({"clip-rect":i},j,k?"easeIn":"normal",function(){Fa.attr({"clip-rect":null});Ba.show();xa.show()});Fa.attr({"clip-rect":pa}).animate(v?h.delay(j):h);b.visible=d.visible!==!1;return b},
drawPlotArea:function(b,d){var n;var e=this,f=e.paper,g=e.options,h=g.chart,i=e.logic,j=g.plotOptions.series,k=e.elements,l=b.items,m=b.graphics=b.graphics||[],p=e.xAxis[d.xAxis||0],q=e.yAxis[d.yAxis||0],r=q.axisData.reversed,t=h.xDepth||0,u=h.yDepth||0,v=i.isStacked,y=(g.tooltip||{}).enabled!==!1,w,g=isNaN(+j.animation)&&j.animation.duration||j.animation*1E3,B=h.series2D3Dshift,i=e.definition.chart.drawfullareaborder==="0",E=b.data,A=d.visible===!1?"hidden":"visible",D,o=E.length,H=p.getAxisPosition(0),
H=(p.getAxisPosition(1)-H)*o,L=p.axisData.scroll||{},h=h.hasScroll||!1,K=j.connectNullData,M,O,s,P,R,S=q.max,V=q.min,Z=q.getAxisPosition(S>0&&V<0?0:!r&&S>0&&V>=0?V:S)+(B?u:0),da=null,U,X,r=d.lineWidth,S=d.dashStyle,aa=c(d.fillColor),V=c(d.lineColor),$=0,ba,fa,ja,ia=[],sa=[],qa=null,wa=[],pa=e.layers;D=pa.dataset=pa.dataset||f.group("dataset-orphan");var ya=pa.datalabels=pa.datalabels||f.group("datalabels").insertAfter(D),qa=pa.tracker,pa=k["clip-canvas-init"].slice(0),k=k["clip-canvas"].slice(0),
xa,Aa,Ba,Da,Ca;q.yBasePos=Z;ya.hide();if(v)Da=D.shadows||(D.shadows=f.group("shadows",D).toBack());Aa=D.area=D.area||f.group("area",D);xa=D.arealine=D.arealine||f.group("area-connector",D);Ba=D.areaanchors=D.areaanchors||f.group("area-anchors",D);Ba.hide();for(D=0;D<o;D+=1){M=E[D];P=M.y;w=x(M.x,D);U=p.getAxisPosition(w)-t;fa=Ca=ja=null;if(P===null)K===0&&(da=null,$>0&&($===1?ia.splice(-8,8):(ia=ia.concat(sa),ia.push("Z")),sa=[])),l[D]={chart:e,index:D,value:P};else{O=M.link;w=M.toolText;s=M.previousY;
R=(R=q.getAxisPosition(s)||null)||Z;X=q.getAxisPosition(P+(s||0))+(B?u:0);if((ba=M.marker)&&ba.enabled)if(fa=ba.symbol.split("_"),s=ba.radius,fa=f.polypath(fa[1]||2,U,X,s,ba.startAngle,0,Ba).attr({fill:c(ba.fillColor),"stroke-width":ba.lineWidth,stroke:c(ba.lineColor),cursor:O?"pointer":"",visibility:A}),O||y)!v&&s<a&&(s=a),ja=f.circle(U,X,s,qa).attr({cursor:O?"pointer":"",stroke:ha,"stroke-width":ba.lineWidth,fill:ha,ishot:!!O,visibility:A}).click(function(){var a=this.data("link");a&&e.linkClickFN.call({link:a},
e)}).tooltip(w).data("link",O);da===null?(wa.push("M",U,",",X),ia.push("M",U,",",R),$=0):wa.push("L",U,",",X);ia.push("L",U,",",X);sa.unshift("L",U,",",R);$++;da=X;l[D]={chart:e,index:D,value:P,graphic:fa,dataLabel:Ca,tracker:ja};Ca=e.drawPlotLineLabel(b,d,D,U,X)}Ca&&m.push(Ca);fa&&m.push(fa);ja&&m.push(ja);e.drawTracker&&e.drawTracker.call(e,b,d,D)}$>0&&($===1?ia.splice(-8,8):(ia=ia.concat(sa),ia.push("Z")));(qa=b.graphic=f.path(ia,Aa).attr({fill:aa,"stroke-dasharray":S,"stroke-width":i?0:r,stroke:V,
"stroke-linecap":"round","stroke-linejoin":r>2?"round":"miter",visibility:A}).shadow(j.shadow&&M.shadow,Da))&&m.push(qa);if(h)j=L.startPercent,k[2]=H+pa[0],j===1&&(pa[0]=k[2],k[0]=0);j=Aa.attr({"clip-rect":pa}).animate({"clip-rect":k},g,h?"easeIn":"normal",function(){Aa.attr({"clip-rect":null});Ba.show();ya.show()});Da&&Da.attr({"clip-rect":pa}).animateWith(Aa,j,{"clip-rect":k},g,h?"easeIn":"normal",function(){Da.attr({"clip-rect":null})});if(i)n=b.connector=f.path(wa,xa).attr({"stroke-dasharray":S,
"stroke-width":r,stroke:V,"stroke-linecap":"round","stroke-linejoin":r>2?"round":"miter",visibility:A}),f=n,xa.attr({"clip-rect":pa}).animateWith(Aa,j,{"clip-rect":k},g,h?"easeIn":"normal",function(){xa.attr({"clip-rect":null})}),f&&m.push(f);b.visible=d.visible!==!1;return b},drawPlotScatter:function(b,d){var n;var e=this,f=e.options,g=f.plotOptions.series,h=e.paper,i=e.elements,j=b.items,k=b.graphics=b.graphics||[],l=e.xAxis[d.xAxis||0],m=e.yAxis[d.yAxis||0],p=b.data,q=d.visible===!1?"hidden":"visible",
r=(f.tooltip||{}).enabled!==!1,t,f=isNaN(+g.animation)&&g.animation.duration||g.animation*1E3,u,v,x,w,y,B,A,E,o,D=d.lineWidth,H=D>0,L=d.color,K=d.dashStyle,M=g.connectNullData,s=[],O,P,R,S,V=e.layers,U=V.dataset||(V.dataset=h.group("dataset-orphan")),X=V.datalabels||(V.datalabels=h.group("datalabels").insertAfter(U)),Z=V.tracker,$;X.hide();V=U.line||(U.line=h.group("connector",U));U=U.anchor||(U.anchor=h.group("anchor",U));u=0;for(v=p.length;u<v;u+=1){x=p[u];O=x.marker;E=o=R=$=S=null;B=x.y;y=x.x;
if(B!==null&&y!==null){if(O&&O.enabled&&(w=x.link,t=x.toolText,P=O.radius,o=m.getAxisPosition(B),E=l.getAxisPosition(y),R=O.symbol.split("_"),R=h.polypath(R[1]||2,E,o,P,O.startAngle,0,U).attr({fill:c(O.fillColor),"stroke-width":O.lineWidth,stroke:c(O.lineColor),cursor:w?"pointer":"",visibility:q}).shadow(g.shadow&&x.shadow),w||r))P<a&&(P=a),S=h.circle(E,o,P,Z).attr({cursor:w?"pointer":"",stroke:ha,"stroke-width":O.lineWidth,fill:ha,ishot:!!w}).tooltip(t).data("link",w).click(function(){var a=this.data("link");
a&&e.linkClickFN.call({link:a},e)});H&&((A===void 0||A===null&&M===0)&&E&&o&&s.push("M",E,",",o),E&&o&&s.push("L",E,",",o),A=o);j[u]={index:u,x:y,y:B,value:B,graphic:R,dataLabel:$,tracker:S};$=e.drawPlotLineLabel(b,d,u,E,o)}else H&&M===0&&(A=null),j[u]={chart:e,index:u,x:y,y:B};$&&k.push($);R&&k.push(R);S&&k.push(S);e.drawTracker&&e.drawTracker.call(e,b,d,u)}if(s.length)n=b.graphic=h.path(s,V).attr({"stroke-dasharray":K,"stroke-width":D,stroke:L,"stroke-linecap":"round","stroke-linejoin":D>2?"round":
"miter",visibility:q}).shadow(g.shadow&&x.shadow),g=n,V.attr({"clip-rect":i["clip-canvas-init"]}).animate({"clip-rect":i["clip-canvas"]},f,"normal"),k.push(g);U.attr({opacity:0}).animate({opacity:1},f,"normal",function(){X.show()});b.visible=d.visible!==!1;return b},drawPlotLineLabel:function(a,b,c,d,e,f){var g=this.options,h=g.chart,i=this.paper,j=this.layers,g=g.plotOptions.series.dataLabels.style,l=h.rotateValues===1?270:0,m=this.canvasHeight,p=this.canvasTop,q=a.data,r=q[c],u=a.items[c],v=t(r.valuePosition,
"auto").toLowerCase(),a=this.logic.defaultSeriesType,h=h.valuePadding+2,b=b.visible===!1?"hidden":"visible",x=!1,w=u.dataLabel,f=f||j.datalabels;switch(v){case "above":c=0;break;case "below":c=1;break;default:c=q[c-1],c=!c?0:c.y<r.y?0:1}j=r.displayValue;if(Na(j)&&j!==k){w?l&&w.rotate(360-l):(w=u.dataLabel=i.text().attr({text:j}).css(g),x=!0);w.attr({title:r.originalText||"",fill:g.color});i=w.getBBox();u=j=l?i.width:i.height;u+=h;i=e-p;m=p+m-e;u+=4;p=j*0.5+h;if(!/bubble/i.test(a))if(c)m>u?(e+=p,r._valueBelowPoint=
1):i>u&&(e-=p);else if(i>u)e-=p;else if(m>u)e+=p,r._valueBelowPoint=1;w.attr({x:d,y:e,visibility:b});l&&w.attr("transform","T0,0,R"+l);x&&f.appendChild(w);x&&M(g.backgroundColor,g.borderColor)!==k&&w.attr({"text-bound":[g.backgroundColor,g.borderColor,1,2]})}else w&&w.attr({text:k});return w},drawLabels:function(){for(var a=this.paper,b=this.options,c=(b=b.labels&&b.labels.items&&b.labels.items)&&b.length,d=this.layers.layerAboveDataset,e=this.elements.quadran||(this.elements.quadran=[]),f=this.canvasTop,
g=this.canvasLeft,h={right:"end",left:"start",undefined:"start"},i,j;c--;)j=b[c],i=j.style,Na(j.html)&&j.html!==k&&(e[c]=a.text(d).attr({text:j.html,x:parseInt(i.left,10)+g,y:parseInt(i.top,10)+f,fill:i.color,"text-anchor":h[j.textAlign],"vertical-align":j.vAlign}).css(i))}},q["renderer.root"]);q("renderer.piebase",{redrawDataLabels:function(a){var b=a.elements.plots[0];a.placeDataLabels(!0,b.items,b);return{}},plotGraphicClick:function(){var a=this.graphic&&this||this.data("plotItem"),b=a.seriesData,
c=a.chart,d,e,f,g,h,i,j;if(!b.isRotating&&!b.singletonCase)return d=a.graphic,e=a.connector,f=a.dataLabel,b=a.sliced,g=a.slicedTranslation,h=a.connectorPath,i=(b?-1:1)*a.transX,j=(b?-1:1)*a.transY,d.animate({transform:b?"t0,0":g},200,"easeIn"),f&&f.x&&f.animate({x:f.x+(b?0:i)},200,"easeIn"),h&&(h[1]+=i,h[2]+=j,h[4]+=i,h[6]+=i,e.animate({path:h},200,"easeIn")),b=a.sliced=!b,a={hcJSON:{series:[]}},a.hcJSON.series[0]={data:[]},B(c.logic.chartInstance.jsVars._reflowData,a,!0),b},plotDragStart:function(a,
b,c){var d=this.data("plotItem"),e=d.chart,d=d.seriesData;if(e.options.series[0].enableRotation)a=Ka.call(c,a,b,d.pieCenter,d.chartPosition),d.dragStartAngle=a,e._pierotateActive=!0},plotDragEnd:function(){var a=this.data("plotItem"),b=a.chart,c={hcJSON:{series:[{startAngle:b.datasets[0].startAngle}]}};b.disposed||(B(b.logic.chartInstance.jsVars._reflowData,c,!0),b.rotate(a.seriesData,b.options.series[0]))},plotDragMove:function(a,b,c,d,e){var a=this.data("plotItem"),f=a.chart,g=a.seriesData,h=f.options.series;
if(h[0].enableRotation&&!g.singletonCase&&(g.isRotating=!0,c=Ka.call(e,c,d,g.pieCenter,g.chartPosition),h[0].startAngle+=c-g.dragStartAngle,g.dragStartAngle=c,g.moveDuration=0,c=(new Date).getTime(),!g._lastTime||g._lastTime+g.timerThreshold<c))setTimeout(function(){f.rotate(g,h[0])},0),g._lastTime=c},plotMouseDown:function(){this.data("plotItem").seriesData.isRotating=!1},plotMouseUp:function(){var a=this.data("plotItem"),b=a.chart,c=a.seriesData;!c.isRotating&&b.linkClickFN.call({link:c.data[a.index].link},
b);w._supportsTouch&&!c.isRotating&&b.plotGraphicClick.call(a)},legendClick:function(a,b,c){a=b.elements.plots[0];a.isRotating=!1;b.plotGraphicClick.call(a.items[c].graphic)},placeDataLabels:function(){var a=function(a,b){return a.point.value-b.point.value},b=function(a,b){return a.angle-b.angle},c=["start","start","end","end"],d=[-1,1,1,-1],e=[1,1,-1,-1];return function(f,g,h,i){var j=this.options.plotOptions,k=j.pie,l=this.canvasLeft+this.canvasWidth*0.5,m=this.canvasTop+this.canvasHeight*0.5,p=
this.smartLabel,q=j.series.dataLabels,r=q.style,j=x(Va(parseFloat(r.lineHeight)),12),t=u(q.placeInside,!1),v=q.skipOverlapLabels,w=q.manageLabelOverflow,B=q.connectorPadding,E=q.distance;u(q.softConnector,!0);var A=i&&i.metrics||[l,m,k.size,k.innerSize||0],D=A[1],o=A[0],i=A[2]*0.5,H=[[],[],[],[]],L=this.canvasLeft,K=this.canvasTop,k=this.canvasWidth,E=h.labelsRadius||(h.labelsRadius=i+E),m=l=parseInt(r.fontSize,10),M=m/2,B=[B,B,-B,-B],h=h.labelsMaxInQuadrant||(h.labelsMaxInQuadrant=ja(E/m)),q=q.isSmartLineSlanted,
A=A[3]/2,O,s,P,R,S,U,X,Z,$,aa,ba,ia,ha,ma,xa;f||p.setStyle(r);if(g.length==1&&!A){if(A=g[0],ma=A.dataLabel,ma.show(),A.slicedTranslation=[L,K],ma)ma.attr({visibility:fa,align:"middle",transform:"t"+o+","+(D+M-2)}),ma.x=o}else if(t){var Ca=A+(i-A)/2;y(g,function(a){ma=a.dataLabel;ma.show();if(ma){var b=a.angle;ba=D+Ca*V(b)+M-2;X=o+Ca*pa(b);ma.x=X;ma._x=X;ma.y=ba;if(a.sliced)a=a.slicedTranslation,b=a[1]-K,X+=a[0]-L,ba+=b;ma.attr({visibility:fa,align:"middle",transform:"t"+X+","+ba})}})}else{y(g,function(a){(ma=
a.dataLabel)&&ma.show();ma&&(ia=a.angle%Pa,ia<0&&(ia=Pa+ia),xa=ia>=0&&ia<bb?1:ia<Da?2:ia<Sa?3:0,H[xa].push({point:a,angle:ia}))});for(g=f=4;g--;){if(v&&(r=H[g].length-h,r>0)){H[g].sort(a);t=H[g].splice(0,r);r=0;for(R=t.length;r<R;r+=1)A=t[r].point,A.dataLabel.attr({visibility:"hidden"}),A.connector&&A.connector.attr({visibility:"hidden"})}H[g].sort(b)}g=Aa(H[0].length,H[1].length,H[2].length,H[3].length);ha=Aa(ya(g,h)*m,E);H[1].reverse();for(H[3].reverse();f--;){t=H[f];R=t.length;v||(m=R>h?ha/R:l,
M=m/2);A=R*m-M;r=ha+M;for(g=0;g<R;g+=1,A-=m)P=Ja(ha*V(t[g].angle)),r-P<m?P=r-m:P<A&&(P=A),r=t[g].oriY=P;O=c[f];R=ha-R*m+M;r=-M;for(g=t.length-1;g>=0;g-=1,R+=m){A=t[g].point;ia=t[g].angle;S=A.sliced;ma=A.dataLabel;P=Ja(ha*V(ia));P-r<m?P=r+m:P>R&&(P=R);r=P;$=(P+t[g].oriY)/2;P=o+e[f]*E*pa(sa.asin($/ha));$*=d[f];$+=D;aa=D+i*V(ia);U=o+i*pa(ia);X=P+B[f];ba=$-M-2;Z=X+B[f];ma.x=Z;ma._x=Z;w&&(s=f>1?Z-this.canvasLeft:this.canvasLeft+k-Z,s=p.getSmartText(A.labelText,s,j),ma.attr({text:s.text,title:s.tooltext||
""}));ma.y=ba;if(S)S=A.transX,s=A.transY,X+=S,P+=S,U+=S,aa+=s,Z+=S;ma.attr({visibility:fa,"text-anchor":O,vAlign:"middle",x:Z,y:$});if(Z=A.connector)A.connectorPath=A=["M",U,aa,"L",q?P:U,$,X,$],Z.attr({path:A,visibility:fa})}}}}}()},q["renderer.root"])}]);
(function(){var i=FusionCharts(["private","modules.renderer.js-interface"]);if(i!==void 0){var l=i.hcLib,w=i.renderer.getRenderer("javascript"),q=l.hasModule,d=l.loadModule,h=l.moduleCmdQueue,aa=l.executeWaitingCommands,e=l.injectModuleDependency,k=l.moduleDependencies,r=l.getDependentModuleName,ha=l.eventList={loaded:"FC_Loaded",dataloaded:"FC_DataLoaded",rendered:"FC_Rendered",drawcomplete:"FC_DrawComplete",resized:"FC_Resized",dataxmlinvalid:"FC_DataXMLInvalid",nodatatodisplay:"FC_NoDataToDisplay",
exported:"FC_Exported"};l.raiseEvent=function(d,e,h,k,l,q){var r=ha[d];i.raiseEvent(d,e,h,l,q);r&&typeof window[r]==="function"&&setTimeout(function(){window[r].apply(window,k)},0)};var D=function(d){var e,h,k,q={},w;for(e in i.core.items)if(e=i.core.items[e],k=e.chartType(),(h=e.jsVars)&&h.waitingModule&&e.__state.rendering&&l.needsModule(d,k))h.waitingModuleError=!0,h=r(k).concat(h.userModules),h.length&&(h=h[h.length-1],q[h]=l.moduleCmdQueue[h]);for(w in q)aa(q[w]);i.raiseError(i.core,"11171116151",
"run","HC-interface~renderer.load","Unable to load required modules and resources: "+d)},ba=function(d,e,h){i.hcLib.createChart(d,e,"stub",h,d.jsVars.msgStore.ChartNotSupported)};k.charts=i.extend(k.charts||{},{column2d:0,column3d:0,pie2d:0,pie3d:0,line:0,bar2d:0,area2d:0,doughnut2d:0,doughnut3d:0,pareto2d:0,pareto3d:0,mscolumn2d:0,mscolumn3d:0,msline:0,msarea:0,msbar2d:0,msbar3d:0,stackedcolumn2d:0,marimekko:0,stackedcolumn3d:0,stackedarea2d:0,stackedcolumn2dline:0,stackedcolumn3dline:0,stackedbar2d:0,
stackedbar3d:0,msstackedcolumn2d:0,mscombi2d:0,mscombi3d:0,mscolumnline3d:0,mscombidy2d:0,mscolumn3dlinedy:0,stackedcolumn3dlinedy:0,msstackedcolumn2dlinedy:0,scatter:0,bubble:0,ssgrid:0,scrollcolumn2d:0,scrollcolumn3d:0,scrollline2d:0,scrollarea2d:0,scrollstackedcolumn2d:0,scrollcombi2d:0,scrollcombidy2d:0,zoomline:0});k.powercharts=i.extend(k.powercharts||{},{spline:0,splinearea:0,msspline:0,mssplinearea:0,multiaxisline:0,multilevelpie:0,waterfall2d:0,msstepline:0,inversemsline:0,inversemscolumn2d:0,
inversemsarea:0,errorbar2d:0,errorscatter:0,errorline:0,logmsline:0,logmscolumn2d:0,radar:0,dragnode:0,candlestick:0,selectscatter:0,dragcolumn2d:0,dragline:0,dragarea:0,boxandwhisker2d:0,kagi:0,heatmap:0});k.widgets=i.extend(k.widgets||{},{angulargauge:0,bulb:0,cylinder:0,drawingpad:0,funnel:0,hbullet:0,hled:0,hlineargauge:0,vlineargauge:0,pyramid:0,realtimearea:0,realtimecolumn:0,realtimeline:0,realtimelinedy:0,realtimestackedarea:0,realtimestackedcolumn:0,sparkcolumn:0,sparkline:0,sparkwinloss:0,
thermometer:0,vbullet:0,gantt:0,vled:0});k.maps=i.extend(k.maps||{},{});i.extend(w,{render:function(d,k){var D=this.chartType(),B=this.jsVars,aa=this.__state,P=l.chartAPI,M;M=r(D).concat(B.userModules);if(B.isResizing)B.isResizing=clearTimeout(B.isResizing);B.hcObj&&B.hcObj.destroy&&B.hcObj.destroy();if(P[D]){if(P[aa.lastRenderedType]&&aa.lastRenderedType!==D)for(var x in P[aa.lastRenderedType].eiMethods)delete this[x];aa.lastRenderedType=D;aa.lastRenderedSrc=this.src;delete B.waitingModule;delete B.waitingModuleError;
delete B.drLoadAttempted;i.hcLib.createChart(this,d,D,k)}else{if(q(M))if(B.drLoadAttempted){i.raiseError(this,11112822001,"run","HC-interface~renderer.render","Chart runtimes not loaded even when resource is present");ba(this,d,k);return}else e(D)&&(M=r(D).concat(B.userModules)),B.drLoadAttempted=!0;else if(M.length){if(B.waitingModuleError){ba(this,d,k);delete B.waitingModule;delete B.waitingModuleError;return}}else{ba(this,d,k);return}(D=h[M[M.length-1]])?(D.push({cmd:"render",obj:this,args:arguments}),
B.waitingModule||(i.hcLib.createChart(this,d,"stub",void 0,B.msgStore.PBarLoadingText||B.msgStore.LoadingText),w.load.call(this))):(i.raiseError(this,12080515551,"run","HC-interface~renderer.render","Unregistered module in dependentModule definition."),i.hcLib.createChart(this,d,"stub",void 0,B.msgStore.RenderChartErrorText))}},update:function(d){var e=this.ref,h=this.jsVars;h.hcObj&&h.hcObj.destroy&&h.hcObj.destroy();if(h.isResizing)h.isResizing=clearTimeout(h.isResizing);d.error===void 0?(delete h.stallLoad,
delete h.loadError,this.isActive()&&(this.src!==this.__state.lastRenderedSrc?this.render():i.hcLib.createChart(this,h.container,h.type))):(this.isActive()&&typeof e.showChartMessage==="function"&&e.showChartMessage("InvalidXMLText"),delete h.loadError)},resize:function(d){var e=this.ref,h,k=this.jsVars;if(e&&e.resize){if(k.isResizing)k.isResizing=clearTimeout(k.isResizing);k.isResizing=setTimeout(function(){h=i.normalizeCSSDimension(d.width,d.height,e);if(d.width!==void 0)e.style.width=h.width;if(d.height!==
void 0)e.style.height=h.height;e.resize();delete k.isResizing},0)}},dispose:function(){var d;d=this.jsVars;var e=d.hcObj||{};if(d.isResizing)d.isResizing=clearTimeout(d.isResizing);d.instanceAPI&&d.instanceAPI.dispose&&d.instanceAPI.dispose();if(d=this.ref)i.purgeDOM(d),d.parentNode&&d.parentNode.removeChild(d);l.cleanupWaitingCommands(this);return e&&e.destroy&&e.destroy()},load:function(){var e=this.jsVars,h=this.chartType(),k=i.hcLib.chartAPI[h],h=r(h).concat(e.userModules),q=h[h.length-1];if(k||
!h||h&&h.length===0)delete e.waitingModule;else if(!e.waitingModule)e.waitingModule=!0,delete e.waitingModuleError,d(h,function(){delete e.waitingModule;aa(l.moduleCmdQueue[q])},D,this)}})}})();